mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 00:04:15 -04:00
plugin/forward: add REFUSED test (#1878)
add a test to see if we copy the rcode correctly. Some minor cleanup in import ordering and renaming NewUpstream to New as we already are in the upstream package.
This commit is contained in:
@@ -145,7 +145,7 @@ func templateParse(c *caddy.Controller) (handler Handler, err error) {
|
||||
|
||||
case "upstream":
|
||||
args := c.RemainingArgs()
|
||||
u, err := upstream.NewUpstream(args)
|
||||
u, err := upstream.New(args)
|
||||
if err != nil {
|
||||
return handler, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user