This commit is contained in:
jdl
2026-06-15 18:45:11 +02:00
parent eaa101f976
commit 36e9f6149d

View File

@@ -24,6 +24,7 @@ var _ WGDevice = (*wginterface.Device)(nil) // compile-time check: Device satisf
const ( const (
ControlPort = 4561 ControlPort = 4561
PingInterval = 8 * time.Second PingInterval = 8 * time.Second
TickInterval = 2 * time.Second
TimeoutInterval = 30 * time.Second TimeoutInterval = 30 * time.Second
) )
@@ -78,7 +79,7 @@ func (a *App) Run() error {
// while we were down). // while we were down).
a.updateHosts() a.updateHosts()
stateTicker := time.NewTicker(time.Second) // TODO: Const. stateTicker := time.NewTicker(TickInterval)
pingTicker := time.NewTicker(PingInterval) pingTicker := time.NewTicker(PingInterval)
sig := make(chan os.Signal, 1) sig := make(chan os.Signal, 1)