prefer Network over string

This commit is contained in:
v2ray committed 2016-02-06 18:03:42 +01:00
1 parent 45db388e3f
commit 4bb1d822af
2 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -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())
}