summaryrefslogtreecommitdiff
path: root/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'config.go')
-rw-r--r--config.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.go b/config.go
index 949d426..c3e6d86 100644
--- a/config.go
+++ b/config.go
@@ -52,7 +52,7 @@ func dnsRegex(s string) (*regexp.Regexp, error) {
b = append(b, regexp.QuoteMeta(f))
}
}
- return regexp.Compile(strings.Join(b, `\.`))
+ return regexp.Compile(fmt.Sprintf("^%s$", strings.Join(b, `\.`)))
}
// Match returns the backend for hostname.