feat(healthcheck/icmp): use the same id and increasing sequence number

- easier debug logs flow
- MAY cost less conntrack-ed slots on the VPN server
- resets id and sequence to 1 when reconnecting VPN
- resets id and sequence to 1 after 5 minutes
- resets id and sequence to 1 if sequence is complete (65535)
This commit is contained in:
Quentin McGaw
2025-11-26 13:38:53 +00:00
parent 08a7aae5f1
commit c25c9f6f0e
2 changed files with 53 additions and 22 deletions
+1
View File
@@ -74,6 +74,7 @@ func (c *Checker) Start(ctx context.Context) (runError <-chan error, err error)
// restore forced check type to dns if icmp was found to be not permitted
c.smallCheckType = smallCheckDNS
}
c.echoer.Reset()
err = c.startupCheck(ctx)
if err != nil {