diff --git a/netLayer/geosite_test.go b/netLayer/geosite_test.go index d05b542..a64fc45 100644 --- a/netLayer/geosite_test.go +++ b/netLayer/geosite_test.go @@ -14,13 +14,14 @@ func TestGeosite(t *testing.T) { //inclusionCount := 0 var typeCount map[string]int = make(map[string]int) - for n, list := range GeositeListMap { + //for n, list := range GeositeListMap { + for _, list := range GeositeListMap { //if len(list.Inclusion) > 0 { //t.Log("==========================", list.Inclusion) // inclusionCount++ //} for _, d := range list.Domains { - t.Log(n, d.Type, d.Value, d.Attrs) + //t.Log(n, d.Type, d.Value, d.Attrs) typeCount[d.Type] = typeCount[d.Type] + 1 } } diff --git a/netLayer/listen.go b/netLayer/listen.go index ef08718..db45027 100644 --- a/netLayer/listen.go +++ b/netLayer/listen.go @@ -43,8 +43,9 @@ func loopAccept(listener net.Listener, xver int, acceptFunc func(net.Conn)) { } time.Sleep(time.Millisecond * 500) + continue } - continue + break } go acceptFunc(newc) }