fix(healthcheck): corret behavior when HEALTH_RESTART_VPN=off and startup check fails

This commit is contained in:
Quentin McGaw
2026-02-11 17:33:14 +00:00
parent 7f22fb3276
commit 23cf3231f0
3 changed files with 40 additions and 13 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ func (l *Loop) onTunnelUp(ctx, loopCtx context.Context, data tunnelUpData) {
icmpTargetIPs = []netip.Addr{data.serverIP}
}
l.healthChecker.SetConfig(l.healthSettings.TargetAddresses, icmpTargetIPs,
l.healthSettings.SmallCheckType)
l.healthSettings.SmallCheckType, !*l.healthSettings.RestartVPN)
healthErrCh, err := l.healthChecker.Start(ctx)
l.healthServer.SetError(err)