Files
vppn/peer/on_pingticker.go
2026-06-15 17:59:25 +02:00

16 lines
212 B
Go

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