You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. run attached tcplisten and udplisten
2.
3.
What is the expected output? What do you see instead?
% ./tcplisten
net.Listen("tcp", ""): 0.0.0.0:0
net.ListenTCP("tcp", nil): 0.0.0.0:0
net.ListenTCP("tcp", &net.TCPAddr()): 0.0.0.0:52391
% ./udplisten
net.ListenPacket("udp", ""): listen udp: missing address
net.ListenUDP("udp", nil): listen udp: missing address
net.ListenUDP("udp", &net.UDPAddr{}): 0.0.0.0:65359
Please use labels and text to provide additional information.
What we need to fix this issue might be:
a) make it possible to listen with a bound address even if laddr is "" or nil,
b) allow to pass "" to net.ListenPacket("udp"), nil to net.ListenUDP("udp").
Attachments:
The text was updated successfully, but these errors were encountered: