WIP
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user