mirror of https://github.com/v2ray/v2ray-core
remove usage of NetworkList in NetworkMatcher
parent
b9c8506c23
commit
6543f5825b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue