diff options
Diffstat (limited to 'plugin/forward/setup.go')
-rw-r--r-- | plugin/forward/setup.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugin/forward/setup.go b/plugin/forward/setup.go index b183044a8..657d5afd4 100644 --- a/plugin/forward/setup.go +++ b/plugin/forward/setup.go @@ -92,8 +92,13 @@ func parseStanza(c *caddy.Controller) (*Forward, error) { if !c.Args(&f.from) { 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 + if len(f.from) > 1 { + log.Warningf("Unsupported CIDR notation: '%s' expands to multiple zones. Using only '%s'.", origFrom, f.from) + } + to := c.RemainingArgs() if len(to) == 0 { return f, c.ArgErr() |