summaryrefslogtreecommitdiff
path: root/src/pkg/net/iprawsock.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/net/iprawsock.go')
-rw-r--r--src/pkg/net/iprawsock.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/net/iprawsock.go b/src/pkg/net/iprawsock.go
index 60433303a..5be6fe4e0 100644
--- a/src/pkg/net/iprawsock.go
+++ b/src/pkg/net/iprawsock.go
@@ -245,7 +245,7 @@ func hostToIP(host string) (ip IP, err os.Error) {
err = err1
goto Error
}
- addr = firstSupportedAddr(addrs)
+ addr = firstSupportedAddr(anyaddr, addrs)
if addr == nil {
// should not happen
err = &AddrError{"LookupHost returned invalid address", addrs[0]}