Fix: should close connection if match blocking list

This commit is contained in:
Kr328 2021-05-29 00:35:04 +08:00
parent d6a71267c6
commit 48222c22c8

View File

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