mirror of
https://github.com/MetaCubeX/ClashMetaForAndroid.git
synced 2024-11-22 13:26:09 +03:00
Fix: should close connection if match blocking list
This commit is contained in:
parent
d6a71267c6
commit
48222c22c8
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user