]> Cypherpunks.ru repositories - gostls13.git/commit
net: parse aliases in /etc/hosts correctly
authorAndrey Mirtchovski <mirtchovski@gmail.com>
Mon, 25 Jan 2010 22:57:04 +0000 (14:57 -0800)
committerRuss Cox <rsc@golang.org>
Mon, 25 Jan 2010 22:57:04 +0000 (14:57 -0800)
commit3fc41d5e65b339fd450bde1657c9ea48f6e8a5ec
tree36845591d29ba13714f910f5178367e3eb886a8f
parent6d8829e931fa92d9228f6b67e0832195cd477248
net: parse aliases in /etc/hosts correctly

Previous behaviour only picked the first entry (official hostname) but not the aliases.

R=rsc
CC=golang-dev
https://golang.org/cl/193092
src/pkg/net/hosts.go
src/pkg/net/hosts_test.go
src/pkg/net/hosts_testdata