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