Skip to content
Snippets Groups Projects
Commit 48222c22 authored by Kr328's avatar Kr328
Browse files

Fix: should close connection if match blocking list

parent d6a71267
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment