remove usage of NetworkList in NetworkMatcher

pull/1435/head
Darien Raymond 6 years ago
parent b9c8506c23
commit 6543f5825b
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

@ -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…
Cancel
Save