mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-06-13 21:54:13 +08:00
Fix no_drop
not work
This commit is contained in:
parent
991e755789
commit
a15b5a2463
@ -279,6 +279,9 @@ func (r *RuleActionReject) Error(ctx context.Context) error {
|
|||||||
default:
|
default:
|
||||||
panic(F.ToString("unknown reject method: ", r.Method))
|
panic(F.ToString("unknown reject method: ", r.Method))
|
||||||
}
|
}
|
||||||
|
if r.NoDrop {
|
||||||
|
return returnErr
|
||||||
|
}
|
||||||
r.dropAccess.Lock()
|
r.dropAccess.Lock()
|
||||||
defer r.dropAccess.Unlock()
|
defer r.dropAccess.Unlock()
|
||||||
timeNow := time.Now()
|
timeNow := time.Now()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user