mirror of
https://github.com/golang/go
synced 2024-11-20 09:34:52 -07:00
net: fix non-unixen build
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/6813101
This commit is contained in:
parent
6694f14b67
commit
5451708d5b
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user