mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-14 14:47:12 +00:00
prefer Network over string
This commit is contained in:
1 parent
45db388e3f
commit
4bb1d822af
2 files changed
+6
-6
No files matched your search
@@ -165,5 +165,5 @@ func NewNetworkMatcher(network *v2net.NetworkList) *NetworkMatcher {
|
||||
}
|
||||
|
||||
func (this *NetworkMatcher) Apply(dest v2net.Destination) bool {
|
||||
return this.network.HasNetwork(v2net.Network(dest.Network()))
|
||||
return this.network.HasNetwork(dest.Network())
|
||||
}
|
||||
Reference in new issue
Block a user