]> Cypherpunks repositories - gostls13.git/commit
net/http: fix dns hijacking test
authorRuss Cox <rsc@golang.org>
Fri, 3 Feb 2017 01:37:29 +0000 (20:37 -0500)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 3 Feb 2017 04:40:36 +0000 (04:40 +0000)
commit64c5280844aa7d6cbec18c47750f9d3e65f5f72a
treea8608e15a279d32980b8b2b3403f26a5901bd2de
parent57546d67ec8bf66f62bdac58542533c18fe42402
net/http: fix dns hijacking test

The name lookups are unrooted; the test should be unrooted too.
Correctly skips the tests if the DNS config specifies a domain
suffix that has a wildcard entry causing all unrooted names to resolve.

Change-Id: I80470326a5d332f3b8d64663f765fd304c5e0811
Reviewed-on: https://go-review.googlesource.com/36253
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/http/transport_test.go