]> Cypherpunks repositories - gostls13.git/commit
net: use absDomainName in the Windows lookupPTR test helper
authorBryan C. Mills <bcmills@google.com>
Wed, 23 Jun 2021 01:24:57 +0000 (21:24 -0400)
committerBryan C. Mills <bcmills@google.com>
Thu, 24 Jun 2021 00:39:41 +0000 (00:39 +0000)
commit73496e0df0ba4284f460d1955ddf6bb096957c9f
treecd22835b1395c25305e1a1e36ac16f7d7853b900
parent222ed1b38af0fb6f83f80062092a267dcbd354df
net: use absDomainName in the Windows lookupPTR test helper

The real net code uses subtle heuristics to transform a domain name
to its absolute form. Since lookupPTR isn't checking that
transformation specifically, it should use the real code instead of
using a different heuristic.

Fixes #46882

Change-Id: I503357e0f62059c37c359cd54b44d343c7d5ab2a
Reviewed-on: https://go-review.googlesource.com/c/go/+/330249
Trust: Bryan C. Mills <bcmills@google.com>
Trust: Alex Brainman <alex.brainman@gmail.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/net/lookup_windows_test.go