This commit is contained in:
jdl
2026-06-15 18:02:44 +02:00
parent 802ca9aba4
commit eaa101f976
3 changed files with 5 additions and 7 deletions

15
peer/on_pingtick.go Normal file
View File

@@ -0,0 +1,15 @@
package peer
import (
"time"
"vppn/peer/control"
)
func (a *App) onPingTick() {
now := time.Now().UnixNano()
for _, p := range a.peersByIP {
if p.Role == control.Client {
a.sendPing(p, now)
}
}
}