{"action":"created","comment":{"url":"https://api.github.com/repos/weaveworks/mesh/pulls/comments/51109391","id":51109391,"diff_hunk":"@@ -69,7 +70,7 @@ func NewRouter(config Config, name PeerName, nickName string, overlay Overlay) *\n \t\tlog.Println(\"Removed unreachable peer\", peer)\n \t})\n \trouter.Routes = newRoutes(router.Ourself, router.Peers)\n-\trouter.ConnectionMaker = newConnectionMaker(router.Ourself, router.Peers, router.Port, router.PeerDiscovery)\n+\trouter.ConnectionMaker = newConnectionMaker(router.Ourself, router.Peers, fmt.Sprint(router.Host, \":0\"), router.Port, router.PeerDiscovery)","path":"router.go","position":13,"original_position":13,"commit_id":"0ab24793287499c5e0f851ca89cde3ac06d89828","original_commit_id":"0ab24793287499c5e0f851ca89cde3ac06d89828","user":{"login":"peterbourgon","id":114509,"avatar_url":"https://avatars.githubusercontent.com/u/114509?v=3","gravatar_id":"","url":"https://api.github.com/users/peterbourgon","html_url":"https://github.com/peterbourgon","followers_url":"https://api.github.com/users/peterbourgon/followers","following_url":"https://api.github.com/users/peterbourgon/following{/other_user}","gists_url":"https://api.github.com/users/peterbourgon/gists{/gist_id}","starred_url":"https://api.github.com/users/peterbourgon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterbourgon/subscriptions","organizations_url":"https://api.github.com/users/peterbourgon/orgs","repos_url":"https://api.github.com/users/peterbourgon/repos","events_url":"https://api.github.com/users/peterbourgon/events{/privacy}","received_events_url":"https://api.github.com/users/peterbourgon/received_events","type":"User","site_admin":false},"body":"[net.JoinHostPort](https://golang.org/pkg/net#JoinHostPort)","created_at":"2016-01-28T11:15:13Z","updated_at":"2016-01-28T11:15:13Z","html_url":"https://github.com/weaveworks/mesh/pull/5#discussion_r51109391","pull_request_url":"https://api.github.com/repos/weaveworks/mesh/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/weaveworks/mesh/pulls/comments/51109391"},"html":{"href":"https://github.com/weaveworks/mesh/pull/5#discussion_r51109391"},"pull_request":{"href":"https://api.github.com/repos/weaveworks/mesh/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/weaveworks/mesh/pulls/5","id":57381944,"html_url":"https://github.com/weaveworks/mesh/pull/5","diff_url":"https://github.com/weaveworks/mesh/pull/5.diff","patch_url":"https://github.com/weaveworks/mesh/pull/5.patch","issue_url":"https://api.github.com/repos/weaveworks/mesh/issues/5","number":5,"state":"open","locked":false,"title":"Add Host field to router config","user":{"login":"awh","id":1504438,"avatar_url":"https://avatars.githubusercontent.com/u/1504438?v=3","gravatar_id":"","url":"https://api.github.com/users/awh","html_url":"https://github.com/awh","followers_url":"https://api.github.com/users/awh/followers","following_url":"https://api.github.com/users/awh/following{/other_user}","gists_url":"https://api.github.com/users/awh/gists{/gist_id}","starred_url":"https://api.github.com/users/awh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awh/subscriptions","organizations_url":"https://api.github.com/users/awh/orgs","repos_url":"https://api.github.com/users/awh/repos","events_url":"https://api.github.com/users/awh/events{/privacy}","received_events_url":"https://api.github.com/users/awh/received_events","type":"User","site_admin":false},"body":"Permit specification of a host IP address to be used for binding the mesh control plane listen socket and as the local address for outbound connections.","created_at":"2016-01-27T16:11:38Z","updated_at":"2016-01-28T11:15:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"df8d1299eeec7824c092f5a25c4d1ba1b765c561","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/weaveworks/mesh/pulls/5/commits","review_comments_url":"https://api.github.com/repos/weaveworks/mesh/pulls/5/comments","review_comment_url":"https://api.github.com/repos/weaveworks/mesh/pulls/comments{/number}","comments_url":"https://api.github.com/repos/weaveworks/mesh/issues/5/comments","statuses_url":"https://api.github.com/repos/weaveworks/mesh/statuses/0ab24793287499c5e0f851ca89cde3ac06d89828","head":{"label":"weaveworks:bind-specific-local-addr","ref":"bind-specific-local-addr","sha":"0ab24793287499c5e0f851ca89cde3ac06d89828","user":{"login":"weaveworks","id":9976052,"avatar_url":"https://avatars.githubusercontent.com/u/9976052?v=3","gravatar_id":"","url":"https://api.github.com/users/weaveworks","html_url":"https://github.com/weaveworks","followers_url":"https://api.github.com/users/weaveworks/followers","following_url":"https://api.github.com/users/weaveworks/following{/other_user}","gists_url":"https://api.github.com/users/weaveworks/gists{/gist_id}","starred_url":"https://api.github.com/users/weaveworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weaveworks/subscriptions","organizations_url":"https://api.github.com/users/weaveworks/orgs","repos_url":"https://api.github.com/users/weaveworks/repos","events_url":"https://api.github.com/users/weaveworks/events{/privacy}","received_events_url":"https://api.github.com/users/weaveworks/received_events","type":"Organization","site_admin":false},"repo":{"id":49562556,"name":"mesh","full_name":"weaveworks/mesh","owner":{"login":"weaveworks","id":9976052,"avatar_url":"https://avatars.githubusercontent.com/u/9976052?v=3","gravatar_id":"","url":"https://api.github.com/users/weaveworks","html_url":"https://github.com/weaveworks","followers_url":"https://api.github.com/users/weaveworks/followers","following_url":"https://api.github.com/users/weaveworks/following{/other_user}","gists_url":"https://api.github.com/users/weaveworks/gists{/gist_id}","starred_url":"https://api.github.com/users/weaveworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weaveworks/subscriptions","organizations_url":"https://api.github.com/users/weaveworks/orgs","repos_url":"https://api.github.com/users/weaveworks/repos","events_url":"https://api.github.com/users/weaveworks/events{/privacy}","received_events_url":"https://api.github.com/users/weaveworks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/weaveworks/mesh","description":"A tool for building distributed applications.","fork":false,"url":"https://api.github.com/repos/weaveworks/mesh","forks_url":"https://api.github.com/repos/weaveworks/mesh/forks","keys_url":"https://api.github.com/repos/weaveworks/mesh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/weaveworks/mesh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/weaveworks/mesh/teams","hooks_url":"https://api.github.com/repos/weaveworks/mesh/hooks","issue_events_url":"https://api.github.com/repos/weaveworks/mesh/issues/events{/number}","events_url":"https://api.github.com/repos/weaveworks/mesh/events","assignees_url":"https://api.github.com/repos/weaveworks/mesh/assignees{/user}","branches_url":"https://api.github.com/repos/weaveworks/mesh/branches{/branch}","tags_url":"https://api.github.com/repos/weaveworks/mesh/tags","blobs_url":"https://api.github.com/repos/weaveworks/mesh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/weaveworks/mesh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/weaveworks/mesh/git/refs{/sha}","trees_url":"https://api.github.com/repos/weaveworks/mesh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/weaveworks/mesh/statuses/{sha}","languages_url":"https://api.github.com/repos/weaveworks/mesh/languages","stargazers_url":"https://api.github.com/repos/weaveworks/mesh/stargazers","contributors_url":"https://api.github.com/repos/weaveworks/mesh/contributors","subscribers_url":"https://api.github.com/repos/weaveworks/mesh/subscribers","subscription_url":"https://api.github.com/repos/weaveworks/mesh/subscription","commits_url":"https://api.github.com/repos/weaveworks/mesh/commits{/sha}","git_commits_url":"https://api.github.com/repos/weaveworks/mesh/git/commits{/sha}","comments_url":"https://api.github.com/repos/weaveworks/mesh/comments{/number}","issue_comment_url":"https://api.github.com/repos/weaveworks/mesh/issues/comments{/number}","contents_url":"https://api.github.com/repos/weaveworks/mesh/contents/{+path}","compare_url":"https://api.github.com/repos/weaveworks/mesh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/weaveworks/mesh/merges","archive_url":"https://api.github.com/repos/weaveworks/mesh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/weaveworks/mesh/downloads","issues_url":"https://api.github.com/repos/weaveworks/mesh/issues{/number}","pulls_url":"https://api.github.com/repos/weaveworks/mesh/pulls{/number}","milestones_url":"https://api.github.com/repos/weaveworks/mesh/milestones{/number}","notifications_url":"https://api.github.com/repos/weaveworks/mesh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/weaveworks/mesh/labels{/name}","releases_url":"https://api.github.com/repos/weaveworks/mesh/releases{/id}","deployments_url":"https://api.github.com/repos/weaveworks/mesh/deployments","created_at":"2016-01-13T09:10:24Z","updated_at":"2016-01-13T09:28:24Z","pushed_at":"2016-01-28T11:13:11Z","git_url":"git://github.com/weaveworks/mesh.git","ssh_url":"git@github.com:weaveworks/mesh.git","clone_url":"https://github.com/weaveworks/mesh.git","svn_url":"https://github.com/weaveworks/mesh","homepage":null,"size":133,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"weaveworks:master","ref":"master","sha":"e23da82f319954cc0e146699b519f9aa0edc5b94","user":{"login":"weaveworks","id":9976052,"avatar_url":"https://avatars.githubusercontent.com/u/9976052?v=3","gravatar_id":"","url":"https://api.github.com/users/weaveworks","html_url":"https://github.com/weaveworks","followers_url":"https://api.github.com/users/weaveworks/followers","following_url":"https://api.github.com/users/weaveworks/following{/other_user}","gists_url":"https://api.github.com/users/weaveworks/gists{/gist_id}","starred_url":"https://api.github.com/users/weaveworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weaveworks/subscriptions","organizations_url":"https://api.github.com/users/weaveworks/orgs","repos_url":"https://api.github.com/users/weaveworks/repos","events_url":"https://api.github.com/users/weaveworks/events{/privacy}","received_events_url":"https://api.github.com/users/weaveworks/received_events","type":"Organization","site_admin":false},"repo":{"id":49562556,"name":"mesh","full_name":"weaveworks/mesh","owner":{"login":"weaveworks","id":9976052,"avatar_url":"https://avatars.githubusercontent.com/u/9976052?v=3","gravatar_id":"","url":"https://api.github.com/users/weaveworks","html_url":"https://github.com/weaveworks","followers_url":"https://api.github.com/users/weaveworks/followers","following_url":"https://api.github.com/users/weaveworks/following{/other_user}","gists_url":"https://api.github.com/users/weaveworks/gists{/gist_id}","starred_url":"https://api.github.com/users/weaveworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weaveworks/subscriptions","organizations_url":"https://api.github.com/users/weaveworks/orgs","repos_url":"https://api.github.com/users/weaveworks/repos","events_url":"https://api.github.com/users/weaveworks/events{/privacy}","received_events_url":"https://api.github.com/users/weaveworks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/weaveworks/mesh","description":"A tool for building distributed applications.","fork":false,"url":"https://api.github.com/repos/weaveworks/mesh","forks_url":"https://api.github.com/repos/weaveworks/mesh/forks","keys_url":"https://api.github.com/repos/weaveworks/mesh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/weaveworks/mesh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/weaveworks/mesh/teams","hooks_url":"https://api.github.com/repos/weaveworks/mesh/hooks","issue_events_url":"https://api.github.com/repos/weaveworks/mesh/issues/events{/number}","events_url":"https://api.github.com/repos/weaveworks/mesh/events","assignees_url":"https://api.github.com/repos/weaveworks/mesh/assignees{/user}","branches_url":"https://api.github.com/repos/weaveworks/mesh/branches{/branch}","tags_url":"https://api.github.com/repos/weaveworks/mesh/tags","blobs_url":"https://api.github.com/repos/weaveworks/mesh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/weaveworks/mesh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/weaveworks/mesh/git/refs{/sha}","trees_url":"https://api.github.com/repos/weaveworks/mesh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/weaveworks/mesh/statuses/{sha}","languages_url":"https://api.github.com/repos/weaveworks/mesh/languages","stargazers_url":"https://api.github.com/repos/weaveworks/mesh/stargazers","contributors_url":"https://api.github.com/repos/weaveworks/mesh/contributors","subscribers_url":"https://api.github.com/repos/weaveworks/mesh/subscribers","subscription_url":"https://api.github.com/repos/weaveworks/mesh/subscription","commits_url":"https://api.github.com/repos/weaveworks/mesh/commits{/sha}","git_commits_url":"https://api.github.com/repos/weaveworks/mesh/git/commits{/sha}","comments_url":"https://api.github.com/repos/weaveworks/mesh/comments{/number}","issue_comment_url":"https://api.github.com/repos/weaveworks/mesh/issues/comments{/number}","contents_url":"https://api.github.com/repos/weaveworks/mesh/contents/{+path}","compare_url":"https://api.github.com/repos/weaveworks/mesh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/weaveworks/mesh/merges","archive_url":"https://api.github.com/repos/weaveworks/mesh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/weaveworks/mesh/downloads","issues_url":"https://api.github.com/repos/weaveworks/mesh/issues{/number}","pulls_url":"https://api.github.com/repos/weaveworks/mesh/pulls{/number}","milestones_url":"https://api.github.com/repos/weaveworks/mesh/milestones{/number}","notifications_url":"https://api.github.com/repos/weaveworks/mesh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/weaveworks/mesh/labels{/name}","releases_url":"https://api.github.com/repos/weaveworks/mesh/releases{/id}","deployments_url":"https://api.github.com/repos/weaveworks/mesh/deployments","created_at":"2016-01-13T09:10:24Z","updated_at":"2016-01-13T09:28:24Z","pushed_at":"2016-01-28T11:13:11Z","git_url":"git://github.com/weaveworks/mesh.git","ssh_url":"git@github.com:weaveworks/mesh.git","clone_url":"https://github.com/weaveworks/mesh.git","svn_url":"https://github.com/weaveworks/mesh","homepage":null,"size":133,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/weaveworks/mesh/pulls/5"},"html":{"href":"https://github.com/weaveworks/mesh/pull/5"},"issue":{"href":"https://api.github.com/repos/weaveworks/mesh/issues/5"},"comments":{"href":"https://api.github.com/repos/weaveworks/mesh/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/weaveworks/mesh/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/weaveworks/mesh/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/weaveworks/mesh/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/weaveworks/mesh/statuses/0ab24793287499c5e0f851ca89cde3ac06d89828"}}}}