- app: fix crash on starting DNS server after installation

This commit is contained in:
Simon Zolin 2019-05-31 16:39:18 +03:00
parent 3baa6919dc
commit b8d9ca942c
2 changed files with 2 additions and 1 deletions

2
app.go
View File

@ -95,6 +95,8 @@ func run(args options) {
os.Exit(0)
}()
clientsInit()
if !config.firstRun {
// Do the upgrade if necessary
err := upgradeConfig()

View File

@ -220,7 +220,6 @@ func parseConfig() error {
return err
}
clientsInit()
for _, cy := range config.Clients {
cli := Client{
Name: cy.Name,