mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-11-23 12:02:58 -05:00
remove usage of NetworkList in NetworkMatcher
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user