]> Cypherpunks repositories - gostls13.git/commitdiff
net: don't append a dot to TXT records on Plan 9
authorFazlul Shahriar <fshahriar@gmail.com>
Thu, 25 Feb 2021 20:16:25 +0000 (15:16 -0500)
committerDavid du Colombier <0intro@gmail.com>
Tue, 9 Mar 2021 19:25:34 +0000 (19:25 +0000)
TXT records are not domain names, so no need to call absDomainName.
The output now matches the pure Go resolver.

Fixes #44619

Change-Id: I1ebf09152ff5c0446d2e2b4c26671358892d9dc9
Reviewed-on: https://go-review.googlesource.com/c/go/+/296589
Reviewed-by: David du Colombier <0intro@gmail.com>
Run-TryBot: David du Colombier <0intro@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: David du Colombier <0intro@gmail.com>
Trust: Ian Lance Taylor <iant@golang.org>

src/net/lookup_plan9.go

index 6a2d48eedace46d23e2a40c4f10ab38466a39900..5fc23f098b7676d3b72dd8981eb3757ce0d94e5f 100644 (file)
@@ -308,7 +308,7 @@ func (*Resolver) lookupTXT(ctx context.Context, name string) (txt []string, err
        }
        for _, line := range lines {
                if i := bytealg.IndexByteString(line, '\t'); i >= 0 {
-                       txt = append(txt, absDomainName([]byte(line[i+1:])))
+                       txt = append(txt, line[i+1:])
                }
        }
        return