Update xray.go

This commit is contained in:
Aubrey Yang 2025-05-21 01:29:59 +09:00 committed by GitHub
parent 800b8b50cc
commit ea8c21f66a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -292,7 +292,8 @@ func (c *OutboundDetourConfig) Build() (*core.OutboundHandlerConfig, error) {
senderSettings.ViaCidr = strings.Split(*c.SendThrough, "/")[1]
} else {
if address.Family().IsDomain() {
if address.Address.Domain() != "origin" {
domain := address.Address.Domain()
if domain != "origin" && domain != "srcip" {
return nil, errors.New("unable to send through: " + address.String())
}
}