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

No files matched your search

+15
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)
}
}
}