mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-05-03 06:22:56 +03:00
Pull request 2153: 6610-hostsfile-enabled
Updates #6610.
Squashed commit of the following:
commit 13522f0768fe0a4f6abe3fc82ffb7ddf3f4df9bf
Merge: befa3bd1d 6fd0a624c
Author: Stanislav Chzhen <s.chzhen@adguard.com>
Date: Wed Feb 21 12:53:08 2024 +0300
Merge branch 'master' into 6610-hostsfile-enabled
commit befa3bd1dedcd2853ef299c06d5c14c9ed7f2c84
Author: Stanislav Chzhen <s.chzhen@adguard.com>
Date: Mon Feb 19 15:56:20 2024 +0300
all: upd chlog
commit c1954306fe7c4d7af164f599b298374ab983216f
Author: Stanislav Chzhen <s.chzhen@adguard.com>
Date: Thu Feb 15 20:52:52 2024 +0300
home: hostsfile enabled
This commit is contained in:
parent
6fd0a624ca
commit
4605e7c90e
4 changed files with 19 additions and 9 deletions
internal/home
|
@ -270,15 +270,17 @@ var cmdLineOpts = []cmdLineOpt{{
|
|||
log.Info(
|
||||
"warning: --no-etc-hosts flag is deprecated " +
|
||||
"and will be removed in the future versions; " +
|
||||
"set clients.runtime_sources.hosts in the configuration file to false instead",
|
||||
"set clients.runtime_sources.hosts and dns.hostsfile_enabled " +
|
||||
"in the configuration file to false instead",
|
||||
)
|
||||
|
||||
return nil, nil
|
||||
},
|
||||
serialize: func(o options) (val string, ok bool) { return "", o.noEtcHosts },
|
||||
description: "Deprecated: use clients.runtime_sources.hosts instead. Do not use the OS-provided hosts.",
|
||||
longName: "no-etc-hosts",
|
||||
shortName: "",
|
||||
serialize: func(o options) (val string, ok bool) { return "", o.noEtcHosts },
|
||||
description: "Deprecated: use clients.runtime_sources.hosts and dns.hostsfile_enabled " +
|
||||
"instead. Do not use the OS-provided hosts.",
|
||||
longName: "no-etc-hosts",
|
||||
shortName: "",
|
||||
}, {
|
||||
updateWithValue: nil,
|
||||
updateNoValue: func(o options) (options, error) { o.localFrontend = true; return o, nil },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue