mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-28 09:58:52 +03:00
Pull request 1831: home: imp depr option doc
Merge in DNS/adguard-home from imp-option-doc to master Squashed commit of the following: commit 267410fcc2c9e757c7d8fb7d9059a709932dda9d Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Mon Apr 17 14:30:12 2023 +0300 home: imp depr option doc
This commit is contained in:
parent
4afd39b22f
commit
1842f7d888
1 changed files with 4 additions and 2 deletions
|
@ -249,13 +249,15 @@ var cmdLineOpts = []cmdLineOpt{{
|
|||
updateNoValue: func(o options) (options, error) { o.noEtcHosts = true; return o, nil },
|
||||
effect: func(_ options, _ string) (f effect, err error) {
|
||||
log.Info(
|
||||
"warning: --no-etc-hosts flag is deprecated and will be removed in the future versions",
|
||||
"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",
|
||||
)
|
||||
|
||||
return nil, nil
|
||||
},
|
||||
serialize: func(o options) (val string, ok bool) { return "", o.noEtcHosts },
|
||||
description: "Deprecated. Do not use the OS-provided hosts.",
|
||||
description: "Deprecated: use clients.runtime_sources.hosts instead. Do not use the OS-provided hosts.",
|
||||
longName: "no-etc-hosts",
|
||||
shortName: "",
|
||||
}, {
|
||||
|
|
Loading…
Reference in a new issue