diff options
author | 2016-03-19 11:20:43 +0000 | |
---|---|---|
committer | 2016-03-19 11:20:43 +0000 | |
commit | 19ea6c2a301c772dff0eaedabda9a11f89030e96 (patch) | |
tree | 586c2e59bc6adbe64f4ca4561038a917266ce95d /middleware/proxy | |
parent | 3511c87d03de75b0f7206fe266e70791d6088835 (diff) | |
parent | 39dbd447b5214bf8c3d25f09b91351fa18062e57 (diff) | |
download | coredns-19ea6c2a301c772dff0eaedabda9a11f89030e96.tar.gz coredns-19ea6c2a301c772dff0eaedabda9a11f89030e96.tar.zst coredns-19ea6c2a301c772dff0eaedabda9a11f89030e96.zip |
Merge pull request #19 from miekg/middleware/log
Fix middleware log
Diffstat (limited to 'middleware/proxy')
-rw-r--r-- | middleware/proxy/upstream.go | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/middleware/proxy/upstream.go b/middleware/proxy/upstream.go index 092e2351d..46e99232e 100644 --- a/middleware/proxy/upstream.go +++ b/middleware/proxy/upstream.go @@ -4,12 +4,10 @@ import ( "io" "io/ioutil" "net/http" - "path" "strconv" "time" "github.com/miekg/coredns/core/parse" - "github.com/miekg/coredns/middleware" ) var ( @@ -226,10 +224,13 @@ func (u *staticUpstream) Select() *UpstreamHost { } func (u *staticUpstream) IsAllowedPath(requestPath string) bool { - for _, ignoredSubPath := range u.IgnoredSubPaths { - if middleware.Path(path.Clean(requestPath)).Matches(path.Join(u.From(), ignoredSubPath)) { - return false + /* + TODO(miek): fix to use Name + for _, ignoredSubPath := range u.IgnoredSubPaths { + if middleware.Path(path.Clean(requestPath)).Matches(path.Join(u.From(), ignoredSubPath)) { + return false + } } - } + */ return true } |