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. Create a server with the net pkg
2. Connect to it with a client
3. Print out the results of LocalAddr
What is the expected output?
2011/08/03 11:28:15 have connection with LocalAddr(): 127.0.0.1:54321
What do you see instead?
2011/08/03 11:28:15 have connection with LocalAddr(): 0.0.0.0:54321
Which compiler are you using (5g, 6g, 8g, gccgo)?
6g
Which operating system are you using?
GNU/Linux
Which revision are you using? (hg identify)
3c21f37b25a3+ weekly/weekly.2011-07-19
Please provide any additional information below.
LocalAddr() does not respond with what is expected. I have attached the server to
demonstrate this. You can connect to the server with nc <ip> 54321 and it will
print out what IP address it believes is connecting from.
I have also attached a patch file for the net pkg. With this patch file enabled, the
output is correct.
by kasimir.g:
Attachments:
The text was updated successfully, but these errors were encountered: