mirror of
https://github.com/e1732a364fed/v2ray_simple.git
synced 2025-12-24 13:27:56 +08:00
修复listen在遇到EOF时无限循环的bug;减少go test在geosite的输出.
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user