coredns/plugin/pkg/parse
Miek Gieben c52a51fac8
parse.HostPortorFile: return error when 0 found (#3742)
* parse.HostPortorFile: return error when 0 found

Return an error when we haven't found any nameservers. This is the
alternative considered in #3735. It's also slighly less code to be
changing.

Replaces: #3741
Closes: #3741 #3735

Signed-off-by: Miek Gieben <miek@miek.nl>

* Add extra test case here as well

Signed-off-by: Miek Gieben <miek@miek.nl>
2020-03-13 14:23:10 +01:00
..
host.go parse.HostPortorFile: return error when 0 found (#3742) 2020-03-13 14:23:10 +01:00
host_test.go parse.HostPortorFile: return error when 0 found (#3742) 2020-03-13 14:23:10 +01:00
parse.go Update Caddy to 1.0.1, and update import path (#2961) 2019-07-03 09:04:47 +08:00
parse_test.go Update Caddy to 1.0.1, and update import path (#2961) 2019-07-03 09:04:47 +08:00
transport.go Better naming (#2104) 2018-09-19 08:16:04 +01:00
transport_test.go Better naming (#2104) 2018-09-19 08:16:04 +01:00