]> Cypherpunks repositories - gostls13.git/commit
net: only return unique hosts during hostname lookup on plan 9
authorNicolas Owens <mischief@offblast.org>
Thu, 13 Feb 2014 15:26:16 +0000 (10:26 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 13 Feb 2014 15:26:16 +0000 (10:26 -0500)
commit68bf5666cdc6805783be7c29fb2a634d8d45bc24
treea4e6fb2a9268df0516bb0a5e1151d7906eeecb8c
parent87d58f44a1e53a61c7bd4b11a7f7aa616f6e373d
net: only return unique hosts during hostname lookup on plan 9

TestLookupHost expects that no duplicate addresses are returned. when cs is consulted for a name, e.g net!localhost!1, it will possibly return multiple available paths, e.g. via il and tcp. this confuses the tests.

LGTM=aram
R=jas, 0intro, aram
CC=golang-codereviews
https://golang.org/cl/58120045
src/pkg/net/lookup_plan9.go