{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/11715","labels_url":"https://api.github.com/repos/golang/go/issues/11715/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/11715/comments","events_url":"https://api.github.com/repos/golang/go/issues/11715/events","html_url":"https://github.com/golang/go/issues/11715","id":95022037,"number":11715,"title":"net: Listen(\"tcp\", \":123456789\") works","user":{"login":"pierrre","id":131535,"avatar_url":"https://avatars.githubusercontent.com/u/131535?v=3","gravatar_id":"","url":"https://api.github.com/users/pierrre","html_url":"https://github.com/pierrre","followers_url":"https://api.github.com/users/pierrre/followers","following_url":"https://api.github.com/users/pierrre/following{/other_user}","gists_url":"https://api.github.com/users/pierrre/gists{/gist_id}","starred_url":"https://api.github.com/users/pierrre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pierrre/subscriptions","organizations_url":"https://api.github.com/users/pierrre/orgs","repos_url":"https://api.github.com/users/pierrre/repos","events_url":"https://api.github.com/users/pierrre/events{/privacy}","received_events_url":"https://api.github.com/users/pierrre/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-07-14T19:40:37Z","updated_at":"2015-07-21T00:27:51Z","closed_at":null,"body":"Go version: go1.4.2 linux/amd64 (same result with Go 1.5beta1)\r\nMy code:\r\n```go\r\npackage main\r\n\r\nimport (\r\n\t\"fmt\"\r\n\t\"net\"\r\n)\r\n\r\nfunc main() {\r\n\tl, err := net.Listen(\"tcp\", \":123456789\")\r\n\tif err != nil {\r\n\t\tpanic(err)\r\n\t}\r\n\tfmt.Println(l.Addr())\r\n}\r\n```\r\nIt prints: `[::]:52501` (always this port)\r\nWhat I expected: it should return an error.\r\n\r\nIf I use port \":66666\", it prints: `panic: listen tcp: invalid port 66666`"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/123107315","html_url":"https://github.com/golang/go/issues/11715#issuecomment-123107315","issue_url":"https://api.github.com/repos/golang/go/issues/11715","id":123107315,"user":{"login":"mikioh","id":92117,"avatar_url":"https://avatars.githubusercontent.com/u/92117?v=3","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":"2015-07-21T00:27:51Z","updated_at":"2015-07-21T00:27:51Z","body":"@jnjackins,\r\n\r\nPlease open a new issue for consistent error messages. This issue needs to focus on the behavior of Listen w/ invalid arguments."}}