mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2026-02-16 17:05:37 +08:00
改进WAF record_ip动作
This commit is contained in:
@@ -25,7 +25,7 @@ func (this *TrafficListener) Accept() (net.Conn, error) {
|
||||
ip, _, err := net.SplitHostPort(conn.RemoteAddr().String())
|
||||
if err == nil {
|
||||
if !waf.SharedIPWhiteList.Contains(waf.IPTypeAll, ip) && waf.SharedIPBlackLIst.Contains(waf.IPTypeAll, ip) {
|
||||
go func() {
|
||||
defer func() {
|
||||
_ = conn.Close()
|
||||
}()
|
||||
return conn, nil
|
||||
|
||||
Reference in New Issue
Block a user