mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-06-13 21:54:13 +08:00
fix
This commit is contained in:
parent
7cc541967e
commit
9a2639f40a
@ -279,6 +279,7 @@ func (r *RuleActionReject) Error(ctx context.Context) error {
|
||||
default:
|
||||
panic(F.ToString("unknown reject method: ", r.Method))
|
||||
}
|
||||
if !r.NoDrop {
|
||||
r.dropAccess.Lock()
|
||||
defer r.dropAccess.Unlock()
|
||||
timeNow := time.Now()
|
||||
@ -292,9 +293,11 @@ func (r *RuleActionReject) Error(ctx context.Context) error {
|
||||
}
|
||||
return tun.ErrDrop
|
||||
}
|
||||
}
|
||||
return returnErr
|
||||
}
|
||||
|
||||
|
||||
type RuleActionHijackDNS struct{}
|
||||
|
||||
func (r *RuleActionHijackDNS) Type() string {
|
||||
|
Loading…
x
Reference in New Issue
Block a user