deprecate Normalize and MustNormalize (#4648)

* deprecate normalize and mustnormalize

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>

* add runtime warning

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>

* elaborate runtime warning

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>

* include caller info

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
This commit is contained in:
Chris O'Haver 2021-05-27 07:26:14 -04:00 committed by GitHub
parent b56f2efe54
commit d8a0d97df2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 61 additions and 11 deletions

View file

@ -70,7 +70,7 @@ func parse(c *caddy.Controller) (*Loop, error) {
}
if len(c.ServerBlockKeys) > 0 {
zones = plugin.Host(c.ServerBlockKeys[0]).Normalize()
zones = plugin.Host(c.ServerBlockKeys[0]).NormalizeExact()
}
}
return New(zones[0]), nil