Add deprecation notice for NO_RELOAD (#2643)

Signed-off-by: Xiao An <hac@zju.edu.cn>
This commit is contained in:
Xiao An
2019-03-08 04:12:54 +08:00
committed by Miek Gieben
parent 97e2a53a65
commit 89a4b9bd45
2 changed files with 2 additions and 0 deletions

View File

@@ -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":