summaryrefslogtreecommitdiff
path: root/libgo/go/net/sock_bsd.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/net/sock_bsd.go')
-rw-r--r--libgo/go/net/sock_bsd.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/libgo/go/net/sock_bsd.go b/libgo/go/net/sock_bsd.go
index 7c693a271f7..2607b04c7bc 100644
--- a/libgo/go/net/sock_bsd.go
+++ b/libgo/go/net/sock_bsd.go
@@ -38,6 +38,11 @@ func listenerSockaddr(s, f int, la syscall.Sockaddr, toAddr func(syscall.Sockadd
return la, nil
}
switch v := a.(type) {
+ case *TCPAddr, *UnixAddr:
+ err := setDefaultListenerSockopts(s)
+ if err != nil {
+ return nil, err
+ }
case *UDPAddr:
if v.IP.IsMulticast() {
err := setDefaultMulticastSockopts(s)