wgengine/router: fix ip rule restoration

Fixes #10857

Signed-off-by: Jason Barnett <[email protected]>
This commit is contained in:
Jason Barnett authored and KevinLiang10 committed 2024-02-15 11:36:40 -05:00
1 parent 52f16b5d10
commit 4d668416b8
1 file changed
+1 -1
+1 -1
View File
@@ -271,7 +271,7 @@ func (r *linuxRouter) onIPRuleDeleted(table uint8, priority uint32) {
// Not our rule.
return
}
if !r.ruleRestorePending.Swap(true) {
if r.ruleRestorePending.Swap(true) {
// Another timer is already pending.
return
}