mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-29 10:28:53 +03:00
Pull request: 2956 fix clients disabling
Merge in DNS/adguard-home from 2956-fix-flag to master
Closes #2956.
Updates #1947.
Squashed commit of the following:
commit ffb98f752f6d4c40ea166ff1e482edcd7f028513
Merge: 800d67db 7be2fc37
Author: Eugene Burkov <e.burkov@adguard.com>
Date: Wed Apr 14 19:01:34 2021 +0300
Merge branch 'master' into 2956-fix-flag
commit 800d67db84786c8fe93d38b6aa932aa4dd4dd345
Author: Eugene Burkov <e.burkov@adguard.com>
Date: Wed Apr 14 18:54:26 2021 +0300
home: fix clients disabling
This commit is contained in:
parent
7be2fc37e6
commit
69f526b13d
2 changed files with 2 additions and 4 deletions
|
@ -117,9 +117,7 @@ func (clients *clientsContainer) Init(
|
||||||
}
|
}
|
||||||
|
|
||||||
clients.dhcpServer = dhcpServer
|
clients.dhcpServer = dhcpServer
|
||||||
if etcHosts != nil {
|
clients.etcHosts = etcHosts
|
||||||
clients.etcHosts = etcHosts
|
|
||||||
}
|
|
||||||
clients.addFromConfig(objects)
|
clients.addFromConfig(objects)
|
||||||
|
|
||||||
if !clients.testing {
|
if !clients.testing {
|
||||||
|
|
|
@ -201,8 +201,8 @@ func setupConfig(args options) {
|
||||||
if !args.noEtcHosts {
|
if !args.noEtcHosts {
|
||||||
Context.etcHosts = &aghnet.EtcHostsContainer{}
|
Context.etcHosts = &aghnet.EtcHostsContainer{}
|
||||||
Context.etcHosts.Init("")
|
Context.etcHosts.Init("")
|
||||||
Context.clients.Init(config.Clients, Context.dhcpServer, Context.etcHosts)
|
|
||||||
}
|
}
|
||||||
|
Context.clients.Init(config.Clients, Context.dhcpServer, Context.etcHosts)
|
||||||
config.Clients = nil
|
config.Clients = nil
|
||||||
|
|
||||||
if (runtime.GOOS == "linux" || runtime.GOOS == "darwin") &&
|
if (runtime.GOOS == "linux" || runtime.GOOS == "darwin") &&
|
||||||
|
|
Loading…
Reference in a new issue