aboutsummaryrefslogtreecommitdiff
path: root/middleware/proxy/upstream.go
diff options
context:
space:
mode:
Diffstat (limited to 'middleware/proxy/upstream.go')
-rw-r--r--middleware/proxy/upstream.go13
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
}