소스 검색

remove usage of NetworkList in NetworkMatcher

Darien Raymond 7 년 전
부모
커밋
6543f5825b
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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