summaryrefslogtreecommitdiffstats
path: root/llgo/third_party/gofrontend/libgo/go/net/sockopt_bsd.go
diff options
context:
space:
mode:
Diffstat (limited to 'llgo/third_party/gofrontend/libgo/go/net/sockopt_bsd.go')
-rw-r--r--llgo/third_party/gofrontend/libgo/go/net/sockopt_bsd.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/llgo/third_party/gofrontend/libgo/go/net/sockopt_bsd.go b/llgo/third_party/gofrontend/libgo/go/net/sockopt_bsd.go
index d5b3621c526..52b2a5debc5 100644
--- a/llgo/third_party/gofrontend/libgo/go/net/sockopt_bsd.go
+++ b/llgo/third_party/gofrontend/libgo/go/net/sockopt_bsd.go
@@ -25,7 +25,7 @@ func setDefaultSockopts(s, family, sotype int, ipv6only bool) error {
syscall.SetsockoptInt(s, syscall.IPPROTO_IPV6, syscall.IPV6_PORTRANGE, syscall.IPV6_PORTRANGE_HIGH)
}
}
- if family == syscall.AF_INET6 && sotype != syscall.SOCK_RAW {
+ if supportsIPv4map && family == syscall.AF_INET6 && sotype != syscall.SOCK_RAW {
// Allow both IP versions even if the OS default
// is otherwise. Note that some operating systems
// never admit this option.
OpenPOWER on IntegriCloud