aboutsummaryrefslogtreecommitdiff
path: root/plugin/etcd
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/etcd')
-rw-r--r--plugin/etcd/msg/path.go2
-rw-r--r--plugin/etcd/stub.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugin/etcd/msg/path.go b/plugin/etcd/msg/path.go
index 2abdec0fe..dc7494782 100644
--- a/plugin/etcd/msg/path.go
+++ b/plugin/etcd/msg/path.go
@@ -26,7 +26,7 @@ func Domain(s string) string {
for i, j := 1, len(l)-1; i < j; i, j = i+1, j-1 {
l[i], l[j] = l[j], l[i]
}
- return dnsutil.Join(l[1 : len(l)-1])
+ return dnsutil.Join(l[1 : len(l)-1]...)
}
// PathWithWildcard ascts as Path, but if a name contains wildcards (* or any), the name will be
diff --git a/plugin/etcd/stub.go b/plugin/etcd/stub.go
index c270bcd2b..37e426ac4 100644
--- a/plugin/etcd/stub.go
+++ b/plugin/etcd/stub.go
@@ -61,7 +61,7 @@ Services:
// Chop of left most label, because that is used as the nameserver place holder
// and drop the right most labels that belong to zone.
// We must *also* chop of dns.stub. which means cutting two more labels.
- domain = dnsutil.Join(labels[1 : len(labels)-dns.CountLabel(z)-2])
+ domain = dnsutil.Join(labels[1 : len(labels)-dns.CountLabel(z)-2]...)
if domain == z {
log.Warningf("Skipping nameserver for domain we are authoritative for: %s", domain)
continue Services