Sfoglia il codice sorgente

remove usage of NetworkList in NetworkMatcher

Darien Raymond 7 anni fa
parent
commit
6543f5825b
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      app/router/condition.go

+ 2 - 2
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