From 48222c22c8e4470a752a61370c8f7a069d18dede Mon Sep 17 00:00:00 2001 From: Kr328 Date: Sat, 29 May 2021 00:35:04 +0800 Subject: [PATCH] Fix: should close connection if match blocking list --- core/src/main/golang/tun/tcp.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/main/golang/tun/tcp.go b/core/src/main/golang/tun/tcp.go index baa34086..b0e3b65d 100644 --- a/core/src/main/golang/tun/tcp.go +++ b/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 } }