We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent efa542a commit 5e140ffCopy full SHA for 5e140ff
intra/xdns/dnsutil.go
@@ -997,10 +997,10 @@ func extractMDNSDomain(qname string) (svc, tld string) {
997
tldarpa6 := strings.LastIndex(qname, arpa6suffix)
998
tldlocal := strings.LastIndex(qname, localsuffix)
999
if tldlocal > 0 {
1000
- svc = qname[:tldlocal]
+ svc = qname[:tldlocal-1] // remove trailing dot
1001
tld = localsuffix
1002
} else if tldarpa4 > 0 {
1003
- svc = qname[:tldarpa4]
+ svc = qname[:tldarpa4-1] // remove trailing dot
1004
tld = arpa4suffix
1005
} else if tldarpa6 > 0 {
1006
// 1.1.1.1.a.e.f.ip6.arpa. -> a.e.f.ip6.arpa
0 commit comments