{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/26347","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/26347/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/26347/comments","events_url":"https://api.github.com/repos/golang/go/issues/26347/events","html_url":"https://github.com/golang/go/issues/26347","id":340505245,"node_id":"MDU6SXNzdWUzNDA1MDUyNDU=","number":26347,"title":"net: UDPConn.LocalAddr() of ListenUDP returns \"0.0.0.0:11110\" instead of \"127.0.0.1:11110\" or \"10.16.83.185:11110\"","user":{"login":"woniuxu","id":1635703,"node_id":"MDQ6VXNlcjE2MzU3MDM=","avatar_url":"https://avatars3.githubusercontent.com/u/1635703?v=4","gravatar_id":"","url":"https://api.github.com/users/woniuxu","html_url":"https://github.com/woniuxu","followers_url":"https://api.github.com/users/woniuxu/followers","following_url":"https://api.github.com/users/woniuxu/following{/other_user}","gists_url":"https://api.github.com/users/woniuxu/gists{/gist_id}","starred_url":"https://api.github.com/users/woniuxu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woniuxu/subscriptions","organizations_url":"https://api.github.com/users/woniuxu/orgs","repos_url":"https://api.github.com/users/woniuxu/repos","events_url":"https://api.github.com/users/woniuxu/events{/privacy}","received_events_url":"https://api.github.com/users/woniuxu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/22","html_url":"https://github.com/golang/go/milestone/22","labels_url":"https://api.github.com/repos/golang/go/milestones/22/labels","id":1067491,"node_id":"MDk6TWlsZXN0b25lMTA2NzQ5MQ==","number":22,"title":"Unreleased","description":"Issues that do not affect released Go code and binaries.\r\n","creator":{"login":"rsc","id":104030,"node_id":"MDQ6VXNlcjEwNDAzMA==","avatar_url":"https://avatars1.githubusercontent.com/u/104030?v=4","gravatar_id":"","url":"https://api.github.com/users/rsc","html_url":"https://github.com/rsc","followers_url":"https://api.github.com/users/rsc/followers","following_url":"https://api.github.com/users/rsc/following{/other_user}","gists_url":"https://api.github.com/users/rsc/gists{/gist_id}","starred_url":"https://api.github.com/users/rsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsc/subscriptions","organizations_url":"https://api.github.com/users/rsc/orgs","repos_url":"https://api.github.com/users/rsc/repos","events_url":"https://api.github.com/users/rsc/events{/privacy}","received_events_url":"https://api.github.com/users/rsc/received_events","type":"User","site_admin":false},"open_issues":887,"closed_issues":1498,"state":"open","created_at":"2015-04-14T18:48:22Z","updated_at":"2018-07-13T02:44:05Z","due_on":"2099-12-31T08:00:00Z","closed_at":null},"comments":3,"created_at":"2018-07-12T06:30:12Z","updated_at":"2018-07-13T02:52:47Z","closed_at":"2018-07-12T22:18:08Z","author_association":"NONE","body":"Please answer these questions before submitting your issue. Thanks!\r\n\r\n### What version of Go are you using (`go version`)?\r\n\r\ngo version go1.9.2 linux/amd64\r\n\r\n### What did you do?\r\n\r\nServer side:\r\n\r\n    ServerAddr,err := net.ResolveUDPAddr(\"udp\",\":11110\")\r\n    ServerConn, err := net.ListenUDP(\"udp\", ServerAddr)\r\n    n,addr,err := ServerConn.ReadFromUDP(buf)\r\n    fmt.Println(\"Received \",string(buf[0:n]), \" from \",addr, \" to \", ServerConn.LocalAddr())\r\n\r\nClient side:\r\n\r\n    ServerAddr1,err := net.ResolveUDPAddr(\"udp\", \"10.16.83.185:11110\")\r\n    Conn1, err := net.DialUDP(\"udp\", nil, ServerAddr1)\r\n    _,err := Conn1.Write(buf)\r\n\r\n    ServerAddr2,err := net.ResolveUDPAddr(\"udp\", \"127.0.0.1:11110\")\r\n    Conn2, err := net.DialUDP(\"udp\", nil, ServerAddr2)\r\n    _,err := Conn2.Write(buf)\r\n\r\n\r\n### What did you expect to see?\r\n\r\n    Received  1  from  10.16.83.185:51386  to  10.16.83.185:11110\r\n    Received  1  from  127.0.0.1:58306  to  127.0.0.1:11110\r\n\r\n### What did you see instead?\r\n\r\n    Received  1  from  10.16.83.185:51386  to  0.0.0.0:11110\r\n    Received  1  from  127.0.0.1:58306  to  0.0.0.0:11110\r\n\r\n\r\nSo what shoud i do to get the \"expect\" result? Thanks.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/404710293","html_url":"https://github.com/golang/go/issues/26347#issuecomment-404710293","issue_url":"https://api.github.com/repos/golang/go/issues/26347","id":404710293,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNDcxMDI5Mw==","user":{"login":"mikioh","id":92117,"node_id":"MDQ6VXNlcjkyMTE3","avatar_url":"https://avatars1.githubusercontent.com/u/92117?v=4","gravatar_id":"","url":"https://api.github.com/users/mikioh","html_url":"https://github.com/mikioh","followers_url":"https://api.github.com/users/mikioh/followers","following_url":"https://api.github.com/users/mikioh/following{/other_user}","gists_url":"https://api.github.com/users/mikioh/gists{/gist_id}","starred_url":"https://api.github.com/users/mikioh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikioh/subscriptions","organizations_url":"https://api.github.com/users/mikioh/orgs","repos_url":"https://api.github.com/users/mikioh/repos","events_url":"https://api.github.com/users/mikioh/events{/privacy}","received_events_url":"https://api.github.com/users/mikioh/received_events","type":"User","site_admin":false},"created_at":"2018-07-13T02:52:47Z","updated_at":"2018-07-13T02:52:47Z","author_association":"CONTRIBUTOR","body":"@woniuxu,\r\n\r\nPlease use other forums: https://github.com/golang/go/wiki/Questions.\r\n\r\nIn general, if your running kernels or libraries in other languages provide something useful for you, it's easy to recreate in your own packages. I can guess that the word \"real\" you are saying means that something per-packet information because you are using \"connection-less or stateless\" datagram-based transport protocols such as UDP. Well, it's better to ask your question in more appropriate forums."}}
{"actor":{"display_login":"mikioh"}}