* use 'update' package

This commit is contained in:
Simon Zolin
2020-07-22 14:20:14 +03:00
parent 117ec4dd43
commit e3ea2528be
5 changed files with 50 additions and 457 deletions

View File

@@ -5,7 +5,6 @@ import (
"os"
"path/filepath"
"sync"
"time"
"github.com/AdguardTeam/AdGuardHome/dhcpd"
"github.com/AdguardTeam/AdGuardHome/dnsfilter"
@@ -40,10 +39,6 @@ type configuration struct {
// It's reset after config is parsed
fileData []byte
// cached version.json to avoid hammering github.io for each page reload
versionCheckJSON []byte
versionCheckLastTime time.Time
BindHost string `yaml:"bind_host"` // BindHost is the IP address of the HTTP server to bind to
BindPort int `yaml:"bind_port"` // BindPort is the port the HTTP server
Users []User `yaml:"users"` // Users that can access HTTP server