diff --git a/app/router/condition.go b/app/router/condition.go index ccf3c08d..aac5c960 100644 --- a/app/router/condition.go +++ b/app/router/condition.go @@ -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