t.Parallel()
mustHaveExternalNetwork(t)
- if iOS() {
+ if runtime.GOOS == "ios" {
t.Skip("no resolv.conf on iOS")
}
t.Parallel()
mustHaveExternalNetwork(t)
- if iOS() {
+ if runtime.GOOS == "ios" {
t.Skip("no resolv.conf on iOS")
}
t.Parallel()
mustHaveExternalNetwork(t)
- if iOS() {
+ if runtime.GOOS == "ios" {
t.Skip("no resolv.conf on iOS")
}
t.Parallel()
mustHaveExternalNetwork(t)
- if iOS() {
+ if runtime.GOOS == "ios" {
t.Skip("no resolv.conf on iOS")
}
t.Skip("IPv4 is required")
}
- if iOS() {
+ if runtime.GOOS == "ios" {
t.Skip("no resolv.conf on iOS")
}
}
case "unix", "unixgram":
switch runtime.GOOS {
- case "android", "plan9", "windows":
+ case "android", "ios", "plan9", "windows":
return false
case "aix":
return unixEnabledOnAIX
}
- // iOS does not support unix, unixgram.
- if iOS() {
- return false
- }
case "unixpacket":
switch runtime.GOOS {
case "aix", "android", "darwin", "ios", "plan9", "windows":
return true
}
-func iOS() bool {
- return runtime.GOOS == "ios"
-}
-
// testableAddress reports whether address of network is testable on
// the current platform configuration.
func testableAddress(network, address string) bool {