Skip to content

Commit 089d295

Browse files
committed
HACK: explicitly default TCP listeners to 0.0.0.0
1 parent 3092995 commit 089d295

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tcpsock.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func ResolveTCPAddr(network, address string) (*TCPAddr, error) {
108108
}
109109

110110
if host == "" {
111-
return &TCPAddr{Port: port}, nil
111+
return &TCPAddr{IP: []byte{0, 0, 0, 0}, Port: port}, nil
112112
}
113113

114114
ip, err := netdev.GetHostByName(host)

0 commit comments

Comments
 (0)