mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-06-13 21:54:13 +08:00
FIx 2
This commit is contained in:
parent
dd47163bea
commit
655724a762
@ -27,11 +27,13 @@ func (r *IPIsPrivateItem) Match(metadata *adapter.InboundContext) bool {
|
|||||||
if destination.IsValid() {
|
if destination.IsValid() {
|
||||||
return !N.IsPublicAddr(destination)
|
return !N.IsPublicAddr(destination)
|
||||||
}
|
}
|
||||||
|
if !r.isSource {
|
||||||
for _, destinationAddress := range metadata.DestinationAddresses {
|
for _, destinationAddress := range metadata.DestinationAddresses {
|
||||||
if !N.IsPublicAddr(destinationAddress) {
|
if !N.IsPublicAddr(destinationAddress) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user