diff options
author | 2018-06-15 16:12:56 +0100 | |
---|---|---|
committer | 2018-06-15 08:12:56 -0700 | |
commit | 177e32b62e1bd937317ec3fd7c7f3a8114c52d77 (patch) | |
tree | 30be44ecbeb89ad8c196e9178824ef029609f536 /plugin/pkg | |
parent | 70c957d885a6c6b33a0828c680e451a9e3a3994a (diff) | |
download | coredns-177e32b62e1bd937317ec3fd7c7f3a8114c52d77.tar.gz coredns-177e32b62e1bd937317ec3fd7c7f3a8114c52d77.tar.zst coredns-177e32b62e1bd937317ec3fd7c7f3a8114c52d77.zip |
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.
Diffstat (limited to 'plugin/pkg')
-rw-r--r-- | plugin/pkg/upstream/upstream.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/pkg/upstream/upstream.go b/plugin/pkg/upstream/upstream.go index 6ef131755..466da8990 100644 --- a/plugin/pkg/upstream/upstream.go +++ b/plugin/pkg/upstream/upstream.go @@ -18,9 +18,9 @@ type Upstream struct { Forward *proxy.Proxy } -// NewUpstream creates a new Upstream for given destination(s). If dests is empty -// it default to upstreaming to Self. -func NewUpstream(dests []string) (Upstream, error) { +// New creates a new Upstream for given destination(s). If dests is empty it default to upstreaming to +// the coredns process. +func New(dests []string) (Upstream, error) { u := Upstream{} if len(dests) == 0 { u.self = true |