mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-21 12:35:33 +03:00
home: imp code
This commit is contained in:
parent
f63d0e80fb
commit
f7315be742
1 changed files with 10 additions and 0 deletions
|
@ -89,6 +89,16 @@ func (clients *clientsContainer) Init(
|
|||
confClients = append(confClients, p)
|
||||
}
|
||||
|
||||
// The clients.etcHosts may be nil even if config.Clients.Sources.HostsFile
|
||||
// is true, because of the deprecated option --no-etc-hosts.
|
||||
//
|
||||
// TODO(e.burkov): The option should probably be returned, since hosts file
|
||||
// currently used not only for clients' information enrichment, but also in
|
||||
// the filtering module and upstream addresses resolution.
|
||||
if !config.Clients.Sources.HostsFile {
|
||||
etcHosts = nil
|
||||
}
|
||||
|
||||
clients.storage, err = client.NewStorage(&client.Config{
|
||||
AllowedTags: clientTags,
|
||||
InitialClients: confClients,
|
||||
|
|
Loading…
Reference in a new issue