Commit 5451708d authored by Mikio Hara's avatar Mikio Hara

net: fix non-unixen build

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/6813101
parent 6694f14b
...@@ -8,7 +8,12 @@ package net ...@@ -8,7 +8,12 @@ package net
import "time" 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) { func firstFavoriteAddr(filter func(IP) IP, addrs []string) (addr IP) {
if filter == nil { if filter == nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment