Browse Source

Fix: should close connection if match blocking list

Kr328 5 years ago
parent
commit
48222c22c8
1 changed files with 2 additions and 0 deletions
  1. 2 0
      core/src/main/golang/tun/tcp.go

+ 2 - 0
core/src/main/golang/tun/tcp.go

@@ -38,6 +38,8 @@ accept:
 		// drop all connections connect to blocking list
 		for _, b := range a.blocking {
 			if b.Contains(tAddr.IP) {
+				_ = conn.Close()
+
 				continue accept
 			}
 		}