mirror of
https://github.com/coredns/coredns.git
synced 2026-05-05 20:26:12 +02:00
Add deprecation notice for NO_RELOAD (#2643)
Signed-off-by: Xiao An <hac@zju.edu.cn>
This commit is contained in:
parent
97e2a53a65
commit
89a4b9bd45
@ -159,6 +159,7 @@ func autoParse(c *caddy.Controller) (Auto, error) {
|
||||
a.loader.ReloadInterval = d
|
||||
|
||||
case "no_reload":
|
||||
log.Warning("NO_RELOAD of directory is deprecated. Use RELOAD (set to 0) instead. See https://coredns.io/plugins/auto/#syntax")
|
||||
a.loader.ReloadInterval = 0
|
||||
|
||||
case "upstream":
|
||||
|
||||
@ -113,6 +113,7 @@ func fileParse(c *caddy.Controller) (Zones, error) {
|
||||
reload = d
|
||||
|
||||
case "no_reload":
|
||||
log.Warning("NO_RELOAD of directory is deprecated. Use RELOAD (set to 0) instead. See https://coredns.io/plugins/file/#syntax")
|
||||
reload = 0
|
||||
|
||||
case "upstream":
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user