WIP: improve responsiveness.

This commit is contained in:
jdl
2026-06-15 17:59:25 +02:00
parent fa933ae029
commit 802ca9aba4
3 changed files with 21 additions and 10 deletions

15
peer/on_pingticker.go Normal file
View File

@@ -0,0 +1,15 @@
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)
}
}
}