{"action":"opened","number":33,"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/pulls/33","id":67954110,"html_url":"https://github.com/GoogleCloudPlatform/cloudsql-proxy/pull/33","diff_url":"https://github.com/GoogleCloudPlatform/cloudsql-proxy/pull/33.diff","patch_url":"https://github.com/GoogleCloudPlatform/cloudsql-proxy/pull/33.patch","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/issues/33","number":33,"state":"open","locked":false,"title":"adding port 0 call to validNets listen test","user":{"login":"ptinsley","id":432616,"avatar_url":"https://avatars.githubusercontent.com/u/432616?v=3","gravatar_id":"","url":"https://api.github.com/users/ptinsley","html_url":"https://github.com/ptinsley","followers_url":"https://api.github.com/users/ptinsley/followers","following_url":"https://api.github.com/users/ptinsley/following{/other_user}","gists_url":"https://api.github.com/users/ptinsley/gists{/gist_id}","starred_url":"https://api.github.com/users/ptinsley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptinsley/subscriptions","organizations_url":"https://api.github.com/users/ptinsley/orgs","repos_url":"https://api.github.com/users/ptinsley/repos","events_url":"https://api.github.com/users/ptinsley/events{/privacy}","received_events_url":"https://api.github.com/users/ptinsley/received_events","type":"User","site_admin":false},"body":"Changing the listen call to use port 0 to grab an available port, the current code doesn't work on alpine linux in a container. This small change fixes it and I don't see a reason it would break other use cases assuming the Go source code is correct:\r\n\r\n>If laddr has a port of 0, ListenTCP will choose an available port.\r\n\r\nExample of this breaking:\r\n\r\n>cloud_sql_proxy -dir=/cloudsql -instances=PROJECT:us-central1:INSTANCE=tcp:3306 -credential_file=/account.json\r\n>2016/04/26 20:20:56 errors parsing config:\r\ninvalid \"PROJECT:us-central1:INSTANCE=tcp:3306\": unrecognized network tcp","created_at":"2016-04-26T20:38:24Z","updated_at":"2016-04-26T20:38:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/pulls/33/commits","review_comments_url":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/pulls/33/comments","review_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/issues/33/comments","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/statuses/0b206479c55fcc56e864ed0d8ad9bad4510f13ed","head":{"label":"ptinsley:master","ref":"master","sha":"0b206479c55fcc56e864ed0d8ad9bad4510f13ed","user":{"login":"ptinsley","id":432616,"avatar_url":"https://avatars.githubusercontent.com/u/432616?v=3","gravatar_id":"","url":"https://api.github.com/users/ptinsley","html_url":"https://github.com/ptinsley","followers_url":"https://api.github.com/users/ptinsley/followers","following_url":"https://api.github.com/users/ptinsley/following{/other_user}","gists_url":"https://api.github.com/users/ptinsley/gists{/gist_id}","starred_url":"https://api.github.com/users/ptinsley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptinsley/subscriptions","organizations_url":"https://api.github.com/users/ptinsley/orgs","repos_url":"https://api.github.com/users/ptinsley/repos","events_url":"https://api.github.com/users/ptinsley/events{/privacy}","received_events_url":"https://api.github.com/users/ptinsley/received_events","type":"User","site_admin":false},"repo":{"id":57160177,"name":"cloudsql-proxy","full_name":"ptinsley/cloudsql-proxy","owner":{"login":"ptinsley","id":432616,"avatar_url":"https://avatars.githubusercontent.com/u/432616?v=3","gravatar_id":"","url":"https://api.github.com/users/ptinsley","html_url":"https://github.com/ptinsley","followers_url":"https://api.github.com/users/ptinsley/followers","following_url":"https://api.github.com/users/ptinsley/following{/other_user}","gists_url":"https://api.github.com/users/ptinsley/gists{/gist_id}","starred_url":"https://api.github.com/users/ptinsley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptinsley/subscriptions","organizations_url":"https://api.github.com/users/ptinsley/orgs","repos_url":"https://api.github.com/users/ptinsley/repos","events_url":"https://api.github.com/users/ptinsley/events{/privacy}","received_events_url":"https://api.github.com/users/ptinsley/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ptinsley/cloudsql-proxy","description":null,"fork":true,"url":"https://api.github.com/repos/ptinsley/cloudsql-proxy","forks_url":"https://api.github.com/repos/ptinsley/cloudsql-proxy/forks","keys_url":"https://api.github.com/repos/ptinsley/cloudsql-proxy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ptinsley/cloudsql-proxy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ptinsley/cloudsql-proxy/teams","hooks_url":"https://api.github.com/repos/ptinsley/cloudsql-proxy/hooks","issue_events_url":"https://api.github.com/repos/ptinsley/cloudsql-proxy/issues/events{/number}","events_url":"https://api.github.com/repos/ptinsley/cloudsql-proxy/events","assignees_url":"https://api.github.com/repos/ptinsley/cloudsql-proxy/assignees{/user}","branches_url":"https://api.github.com/repos/ptinsley/cloudsql-proxy/branches{/branch}","tags_url":"https://api.github.com/repos/ptinsley/cloudsql-proxy/tags","blobs_url":"https://api.github.com/repos/ptinsley/cloudsql-proxy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ptinsley/cloudsql-proxy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ptinsley/cloudsql-proxy/git/refs{/sha}","trees_url":"https://api.github.com/repos/ptinsley/cloudsql-proxy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ptinsley/cloudsql-proxy/statuses/{sha}","languages_url":"https://api.github.com/repos/ptinsley/cloudsql-proxy/languages","stargazers_url":"https://api.github.com/repos/ptinsley/cloudsql-proxy/stargazers","contributors_url":"https://api.github.com/repos/ptinsley/cloudsql-proxy/contributors","subscribers_url":"https://api.github.com/repos/ptinsley/cloudsql-proxy/subscribers","subscription_url":"https://api.github.com/repos/ptinsley/cloudsql-proxy/subscription","commits_url":"https://api.github.com/repos/ptinsley/cloudsql-proxy/commits{/sha}","git_commits_url":"https://api.github.com/repos/ptinsley/cloudsql-proxy/git/commits{/sha}","comments_url":"https://api.github.com/repos/ptinsley/cloudsql-proxy/comments{/number}","issue_comment_url":"https://api.github.com/repos/ptinsley/cloudsql-proxy/issues/comments{/number}","contents_url":"https://api.github.com/repos/ptinsley/cloudsql-proxy/contents/{+path}","compare_url":"https://api.github.com/repos/ptinsley/cloudsql-proxy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ptinsley/cloudsql-proxy/merges","archive_url":"https://api.github.com/repos/ptinsley/cloudsql-proxy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ptinsley/cloudsql-proxy/downloads","issues_url":"https://api.github.com/repos/ptinsley/cloudsql-proxy/issues{/number}","pulls_url":"https://api.github.com/repos/ptinsley/cloudsql-proxy/pulls{/number}","milestones_url":"https://api.github.com/repos/ptinsley/cloudsql-proxy/milestones{/number}","notifications_url":"https://api.github.com/repos/ptinsley/cloudsql-proxy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ptinsley/cloudsql-proxy/labels{/name}","releases_url":"https://api.github.com/repos/ptinsley/cloudsql-proxy/releases{/id}","deployments_url":"https://api.github.com/repos/ptinsley/cloudsql-proxy/deployments","created_at":"2016-04-26T20:34:33Z","updated_at":"2016-04-26T20:34:34Z","pushed_at":"2016-04-26T20:36:48Z","git_url":"git://github.com/ptinsley/cloudsql-proxy.git","ssh_url":"git@github.com:ptinsley/cloudsql-proxy.git","clone_url":"https://github.com/ptinsley/cloudsql-proxy.git","svn_url":"https://github.com/ptinsley/cloudsql-proxy","homepage":null,"size":113,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"GoogleCloudPlatform:master","ref":"master","sha":"703c832fe568afe4a7ec21e09f14812eb543b72a","user":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":43526067,"name":"cloudsql-proxy","full_name":"GoogleCloudPlatform/cloudsql-proxy","owner":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GoogleCloudPlatform/cloudsql-proxy","description":null,"fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/releases{/id}","deployments_url":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/deployments","created_at":"2015-10-01T23:13:02Z","updated_at":"2016-04-21T14:04:27Z","pushed_at":"2016-04-26T20:28:01Z","git_url":"git://github.com/GoogleCloudPlatform/cloudsql-proxy.git","ssh_url":"git@github.com:GoogleCloudPlatform/cloudsql-proxy.git","clone_url":"https://github.com/GoogleCloudPlatform/cloudsql-proxy.git","svn_url":"https://github.com/GoogleCloudPlatform/cloudsql-proxy","homepage":null,"size":120,"stargazers_count":18,"watchers_count":18,"language":"Go","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":7,"forks":11,"open_issues":7,"watchers":18,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/pulls/33"},"html":{"href":"https://github.com/GoogleCloudPlatform/cloudsql-proxy/pull/33"},"issue":{"href":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/issues/33"},"comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/issues/33/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/pulls/33/comments"},"review_comment":{"href":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/pulls/33/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleCloudPlatform/cloudsql-proxy/statuses/0b206479c55fcc56e864ed0d8ad9bad4510f13ed"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}