1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-10 18:00:43 +00:00

remove usage of NetworkList in NetworkMatcher

This commit is contained in:
Darien Raymond 2018-11-20 12:27:33 +01:00
parent b9c8506c23
commit 6543f5825b
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -185,9 +185,9 @@ type NetworkMatcher struct {
list [8]bool
}
func NewNetworkMatcher(network *net.NetworkList) NetworkMatcher {
func NewNetworkMatcher(network []net.Network) NetworkMatcher {
var matcher NetworkMatcher
for _, n := range network.Network {
for _, n := range network {
matcher.list[int(n)] = true
}
return matcher