plugin/etcd: allow disabling legacy apex fallback (#8468)

Signed-off-by: houyuwushang <liuluoqianqiu@outlook.com>
This commit is contained in:
houyuwushang
2026-08-24 08:56:12 +08:00
committed by GitHub
parent 3b9f85bb71
commit b8720090b5
9 changed files with 128 additions and 7 deletions

View File

@@ -62,6 +62,11 @@ func etcdParse(c *caddy.Controller) (*Etcd, error) {
etc.Fall.SetZonesFromArgs(c.RemainingArgs())
case "debug":
/* it is a noop now */
case "no_apex_fallback":
if len(c.RemainingArgs()) != 0 {
return &Etcd{}, c.ArgErr()
}
etc.NoApexFallback = true
case "path":
if !c.NextArg() {
return &Etcd{}, c.ArgErr()