diff options
author | 2021-05-27 07:26:14 -0400 | |
---|---|---|
committer | 2021-05-27 13:26:14 +0200 | |
commit | d8a0d97df27244c8f958dea4cb8bbb89121e355d (patch) | |
tree | 9d2b733dcc213463cfee98d331d7a92e7689dc01 /plugin/forward/setup.go | |
parent | b56f2efe54bcfafa614f7b5f1acb876d8d80c11b (diff) | |
download | coredns-d8a0d97df27244c8f958dea4cb8bbb89121e355d.tar.gz coredns-d8a0d97df27244c8f958dea4cb8bbb89121e355d.tar.zst coredns-d8a0d97df27244c8f958dea4cb8bbb89121e355d.zip |
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>
Diffstat (limited to 'plugin/forward/setup.go')
-rw-r--r-- | plugin/forward/setup.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/forward/setup.go b/plugin/forward/setup.go index 657d5afd4..3cebfe2d9 100644 --- a/plugin/forward/setup.go +++ b/plugin/forward/setup.go @@ -93,7 +93,7 @@ func parseStanza(c *caddy.Controller) (*Forward, error) { return f, c.ArgErr() } origFrom := f.from - f.from = plugin.Host(f.from).Normalize()[0] // there can only be one here, won't work with non-octet reverse + f.from = plugin.Host(f.from).NormalizeExact()[0] // there can only be one here, won't work with non-octet reverse if len(f.from) > 1 { log.Warningf("Unsupported CIDR notation: '%s' expands to multiple zones. Using only '%s'.", origFrom, f.from) @@ -156,7 +156,7 @@ func parseBlock(c *caddy.Controller, f *Forward) error { return c.ArgErr() } for i := 0; i < len(ignore); i++ { - f.ignored = append(f.ignored, plugin.Host(ignore[i]).Normalize()...) + f.ignored = append(f.ignored, plugin.Host(ignore[i]).NormalizeExact()...) } case "max_fails": if !c.NextArg() { |