feat(cli): add stable provisioning failure codes

This commit is contained in:
Anthony Wong
2026-08-24 15:16:12 +07:00
committed by Cuong Manh Le
parent 0dde645a8f
commit a40eb70ce8
10 changed files with 1415 additions and 118 deletions
+6 -1
View File
@@ -1654,12 +1654,17 @@ func isResourceExhaustion(err error, output []byte) bool {
}
func (p *prog) scheduleDNSAfterVPNSettleRefresh(reason string, delay time.Duration) {
time.AfterFunc(delay, func() {
timer := time.AfterFunc(delay, func() {
if p.dnsInterceptState == nil {
return
}
p.refreshDNSAfterVPNSettle(reason)
})
// Track the timer like the other delayed rechecks, so intercept teardown
// (and test cleanup) can stop it instead of letting it fire afterwards.
p.pfDelayedRecheckMu.Lock()
p.pfDelayedRecheckTimers = append(p.pfDelayedRecheckTimers, timer)
p.pfDelayedRecheckMu.Unlock()
}
// pfWatchdog periodically checks that our pf anchor is still active.