1
0
mirror of https://github.com/golang/go synced 2024-11-20 07:04:40 -07:00

net: fix non-unixen build

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/6813101
This commit is contained in:
Mikio Hara 2012-11-09 02:09:09 +09:00
parent 6694f14b67
commit 5451708d5b

View File

@ -8,7 +8,12 @@ package net
import "time"
var supportsIPv6, supportsIPv4map = probeIPv6Stack()
var supportsIPv6, supportsIPv4map bool
func init() {
sysInit()
supportsIPv6, supportsIPv4map = probeIPv6Stack()
}
func firstFavoriteAddr(filter func(IP) IP, addrs []string) (addr IP) {
if filter == nil {