remove usage of NetworkList in NetworkMatcher

pull/1435/head
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
1 changed files with 2 additions and 2 deletions

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