{"action":"created","comment":{"url":"https://api.github.com/repos/chef/chef-zero/pulls/comments/57211051","id":57211051,"diff_hunk":"@@ -164,10 +164,10 @@ def port\n     #\n     def url\n       sch = @options[:ssl] ? 'https' : 'http'\n-      @url ||= if @options[:host].include?(':')\n-                 URI(\"#{sch}://[#{@options[:host]}]:#{port}\").to_s\n+      @url ||= if @options[:host].first.include?(':')\n+                 URI(\"#{sch}://[#{@options[:host].first}]:#{port}\").to_s\n                else\n-                 URI(\"#{sch}://#{@options[:host]}:#{port}\").to_s\n+                 URI(\"#{sch}://#{@options[:host].first}:#{port}\").to_s","path":"lib/chef_zero/server.rb","position":19,"original_position":19,"commit_id":"799f727d01519de6e5249a724e3c9ac857031c7e","original_commit_id":"799f727d01519de6e5249a724e3c9ac857031c7e","user":{"login":"jaymzh","id":938467,"avatar_url":"https://avatars.githubusercontent.com/u/938467?v=3","gravatar_id":"","url":"https://api.github.com/users/jaymzh","html_url":"https://github.com/jaymzh","followers_url":"https://api.github.com/users/jaymzh/followers","following_url":"https://api.github.com/users/jaymzh/following{/other_user}","gists_url":"https://api.github.com/users/jaymzh/gists{/gist_id}","starred_url":"https://api.github.com/users/jaymzh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaymzh/subscriptions","organizations_url":"https://api.github.com/users/jaymzh/orgs","repos_url":"https://api.github.com/users/jaymzh/repos","events_url":"https://api.github.com/users/jaymzh/events{/privacy}","received_events_url":"https://api.github.com/users/jaymzh/received_events","type":"User","site_admin":false},"body":"Yes, that's my understanding.","created_at":"2016-03-23T18:22:09Z","updated_at":"2016-03-23T18:22:09Z","html_url":"https://github.com/chef/chef-zero/pull/208#discussion_r57211051","pull_request_url":"https://api.github.com/repos/chef/chef-zero/pulls/208","_links":{"self":{"href":"https://api.github.com/repos/chef/chef-zero/pulls/comments/57211051"},"html":{"href":"https://github.com/chef/chef-zero/pull/208#discussion_r57211051"},"pull_request":{"href":"https://api.github.com/repos/chef/chef-zero/pulls/208"}}},"pull_request":{"url":"https://api.github.com/repos/chef/chef-zero/pulls/208","id":63435856,"html_url":"https://github.com/chef/chef-zero/pull/208","diff_url":"https://github.com/chef/chef-zero/pull/208.diff","patch_url":"https://github.com/chef/chef-zero/pull/208.patch","issue_url":"https://api.github.com/repos/chef/chef-zero/issues/208","number":208,"state":"open","locked":false,"title":"Enable listening on more than one address","user":{"login":"jaymzh","id":938467,"avatar_url":"https://avatars.githubusercontent.com/u/938467?v=3","gravatar_id":"","url":"https://api.github.com/users/jaymzh","html_url":"https://github.com/jaymzh","followers_url":"https://api.github.com/users/jaymzh/followers","following_url":"https://api.github.com/users/jaymzh/following{/other_user}","gists_url":"https://api.github.com/users/jaymzh/gists{/gist_id}","starred_url":"https://api.github.com/users/jaymzh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaymzh/subscriptions","organizations_url":"https://api.github.com/users/jaymzh/orgs","repos_url":"https://api.github.com/users/jaymzh/repos","events_url":"https://api.github.com/users/jaymzh/events{/privacy}","received_events_url":"https://api.github.com/users/jaymzh/received_events","type":"User","site_admin":false},"body":"If you listen on :: you get all v6 addrs. If you listen on 0.0.0.0 you get all\r\nv4 addrs. There's no way to listen on both. Allow people to pass in multiple\r\n`--host`s","created_at":"2016-03-18T21:02:05Z","updated_at":"2016-03-23T18:22:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b598cce3782848a445444425d660f645022a9bb5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/chef/chef-zero/pulls/208/commits","review_comments_url":"https://api.github.com/repos/chef/chef-zero/pulls/208/comments","review_comment_url":"https://api.github.com/repos/chef/chef-zero/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chef/chef-zero/issues/208/comments","statuses_url":"https://api.github.com/repos/chef/chef-zero/statuses/799f727d01519de6e5249a724e3c9ac857031c7e","head":{"label":"jaymzh:multilisten","ref":"multilisten","sha":"799f727d01519de6e5249a724e3c9ac857031c7e","user":{"login":"jaymzh","id":938467,"avatar_url":"https://avatars.githubusercontent.com/u/938467?v=3","gravatar_id":"","url":"https://api.github.com/users/jaymzh","html_url":"https://github.com/jaymzh","followers_url":"https://api.github.com/users/jaymzh/followers","following_url":"https://api.github.com/users/jaymzh/following{/other_user}","gists_url":"https://api.github.com/users/jaymzh/gists{/gist_id}","starred_url":"https://api.github.com/users/jaymzh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaymzh/subscriptions","organizations_url":"https://api.github.com/users/jaymzh/orgs","repos_url":"https://api.github.com/users/jaymzh/repos","events_url":"https://api.github.com/users/jaymzh/events{/privacy}","received_events_url":"https://api.github.com/users/jaymzh/received_events","type":"User","site_admin":false},"repo":{"id":27109647,"name":"chef-zero","full_name":"jaymzh/chef-zero","owner":{"login":"jaymzh","id":938467,"avatar_url":"https://avatars.githubusercontent.com/u/938467?v=3","gravatar_id":"","url":"https://api.github.com/users/jaymzh","html_url":"https://github.com/jaymzh","followers_url":"https://api.github.com/users/jaymzh/followers","following_url":"https://api.github.com/users/jaymzh/following{/other_user}","gists_url":"https://api.github.com/users/jaymzh/gists{/gist_id}","starred_url":"https://api.github.com/users/jaymzh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaymzh/subscriptions","organizations_url":"https://api.github.com/users/jaymzh/orgs","repos_url":"https://api.github.com/users/jaymzh/repos","events_url":"https://api.github.com/users/jaymzh/events{/privacy}","received_events_url":"https://api.github.com/users/jaymzh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jaymzh/chef-zero","description":"Simple, easy-run, fast-start in-memory Chef server for testing and solo purposes","fork":true,"url":"https://api.github.com/repos/jaymzh/chef-zero","forks_url":"https://api.github.com/repos/jaymzh/chef-zero/forks","keys_url":"https://api.github.com/repos/jaymzh/chef-zero/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jaymzh/chef-zero/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jaymzh/chef-zero/teams","hooks_url":"https://api.github.com/repos/jaymzh/chef-zero/hooks","issue_events_url":"https://api.github.com/repos/jaymzh/chef-zero/issues/events{/number}","events_url":"https://api.github.com/repos/jaymzh/chef-zero/events","assignees_url":"https://api.github.com/repos/jaymzh/chef-zero/assignees{/user}","branches_url":"https://api.github.com/repos/jaymzh/chef-zero/branches{/branch}","tags_url":"https://api.github.com/repos/jaymzh/chef-zero/tags","blobs_url":"https://api.github.com/repos/jaymzh/chef-zero/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jaymzh/chef-zero/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jaymzh/chef-zero/git/refs{/sha}","trees_url":"https://api.github.com/repos/jaymzh/chef-zero/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jaymzh/chef-zero/statuses/{sha}","languages_url":"https://api.github.com/repos/jaymzh/chef-zero/languages","stargazers_url":"https://api.github.com/repos/jaymzh/chef-zero/stargazers","contributors_url":"https://api.github.com/repos/jaymzh/chef-zero/contributors","subscribers_url":"https://api.github.com/repos/jaymzh/chef-zero/subscribers","subscription_url":"https://api.github.com/repos/jaymzh/chef-zero/subscription","commits_url":"https://api.github.com/repos/jaymzh/chef-zero/commits{/sha}","git_commits_url":"https://api.github.com/repos/jaymzh/chef-zero/git/commits{/sha}","comments_url":"https://api.github.com/repos/jaymzh/chef-zero/comments{/number}","issue_comment_url":"https://api.github.com/repos/jaymzh/chef-zero/issues/comments{/number}","contents_url":"https://api.github.com/repos/jaymzh/chef-zero/contents/{+path}","compare_url":"https://api.github.com/repos/jaymzh/chef-zero/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jaymzh/chef-zero/merges","archive_url":"https://api.github.com/repos/jaymzh/chef-zero/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jaymzh/chef-zero/downloads","issues_url":"https://api.github.com/repos/jaymzh/chef-zero/issues{/number}","pulls_url":"https://api.github.com/repos/jaymzh/chef-zero/pulls{/number}","milestones_url":"https://api.github.com/repos/jaymzh/chef-zero/milestones{/number}","notifications_url":"https://api.github.com/repos/jaymzh/chef-zero/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jaymzh/chef-zero/labels{/name}","releases_url":"https://api.github.com/repos/jaymzh/chef-zero/releases{/id}","deployments_url":"https://api.github.com/repos/jaymzh/chef-zero/deployments","created_at":"2014-11-25T04:47:56Z","updated_at":"2016-03-18T20:49:15Z","pushed_at":"2016-03-23T05:01:26Z","git_url":"git://github.com/jaymzh/chef-zero.git","ssh_url":"git@github.com:jaymzh/chef-zero.git","clone_url":"https://github.com/jaymzh/chef-zero.git","svn_url":"https://github.com/jaymzh/chef-zero","homepage":null,"size":663,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"chef:master","ref":"master","sha":"c67095f4da311feb3d63cfd35cb25ee07e49f4b2","user":{"login":"chef","id":29740,"avatar_url":"https://avatars.githubusercontent.com/u/29740?v=3","gravatar_id":"","url":"https://api.github.com/users/chef","html_url":"https://github.com/chef","followers_url":"https://api.github.com/users/chef/followers","following_url":"https://api.github.com/users/chef/following{/other_user}","gists_url":"https://api.github.com/users/chef/gists{/gist_id}","starred_url":"https://api.github.com/users/chef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chef/subscriptions","organizations_url":"https://api.github.com/users/chef/orgs","repos_url":"https://api.github.com/users/chef/repos","events_url":"https://api.github.com/users/chef/events{/privacy}","received_events_url":"https://api.github.com/users/chef/received_events","type":"Organization","site_admin":false},"repo":{"id":7253769,"name":"chef-zero","full_name":"chef/chef-zero","owner":{"login":"chef","id":29740,"avatar_url":"https://avatars.githubusercontent.com/u/29740?v=3","gravatar_id":"","url":"https://api.github.com/users/chef","html_url":"https://github.com/chef","followers_url":"https://api.github.com/users/chef/followers","following_url":"https://api.github.com/users/chef/following{/other_user}","gists_url":"https://api.github.com/users/chef/gists{/gist_id}","starred_url":"https://api.github.com/users/chef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chef/subscriptions","organizations_url":"https://api.github.com/users/chef/orgs","repos_url":"https://api.github.com/users/chef/repos","events_url":"https://api.github.com/users/chef/events{/privacy}","received_events_url":"https://api.github.com/users/chef/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/chef/chef-zero","description":"Simple, easy-run, fast-start in-memory Chef server for testing and solo purposes","fork":false,"url":"https://api.github.com/repos/chef/chef-zero","forks_url":"https://api.github.com/repos/chef/chef-zero/forks","keys_url":"https://api.github.com/repos/chef/chef-zero/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chef/chef-zero/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chef/chef-zero/teams","hooks_url":"https://api.github.com/repos/chef/chef-zero/hooks","issue_events_url":"https://api.github.com/repos/chef/chef-zero/issues/events{/number}","events_url":"https://api.github.com/repos/chef/chef-zero/events","assignees_url":"https://api.github.com/repos/chef/chef-zero/assignees{/user}","branches_url":"https://api.github.com/repos/chef/chef-zero/branches{/branch}","tags_url":"https://api.github.com/repos/chef/chef-zero/tags","blobs_url":"https://api.github.com/repos/chef/chef-zero/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chef/chef-zero/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chef/chef-zero/git/refs{/sha}","trees_url":"https://api.github.com/repos/chef/chef-zero/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chef/chef-zero/statuses/{sha}","languages_url":"https://api.github.com/repos/chef/chef-zero/languages","stargazers_url":"https://api.github.com/repos/chef/chef-zero/stargazers","contributors_url":"https://api.github.com/repos/chef/chef-zero/contributors","subscribers_url":"https://api.github.com/repos/chef/chef-zero/subscribers","subscription_url":"https://api.github.com/repos/chef/chef-zero/subscription","commits_url":"https://api.github.com/repos/chef/chef-zero/commits{/sha}","git_commits_url":"https://api.github.com/repos/chef/chef-zero/git/commits{/sha}","comments_url":"https://api.github.com/repos/chef/chef-zero/comments{/number}","issue_comment_url":"https://api.github.com/repos/chef/chef-zero/issues/comments{/number}","contents_url":"https://api.github.com/repos/chef/chef-zero/contents/{+path}","compare_url":"https://api.github.com/repos/chef/chef-zero/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chef/chef-zero/merges","archive_url":"https://api.github.com/repos/chef/chef-zero/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chef/chef-zero/downloads","issues_url":"https://api.github.com/repos/chef/chef-zero/issues{/number}","pulls_url":"https://api.github.com/repos/chef/chef-zero/pulls{/number}","milestones_url":"https://api.github.com/repos/chef/chef-zero/milestones{/number}","notifications_url":"https://api.github.com/repos/chef/chef-zero/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chef/chef-zero/labels{/name}","releases_url":"https://api.github.com/repos/chef/chef-zero/releases{/id}","deployments_url":"https://api.github.com/repos/chef/chef-zero/deployments","created_at":"2012-12-20T07:24:14Z","updated_at":"2016-03-23T09:58:42Z","pushed_at":"2016-03-23T05:01:26Z","git_url":"git://github.com/chef/chef-zero.git","ssh_url":"git@github.com:chef/chef-zero.git","clone_url":"https://github.com/chef/chef-zero.git","svn_url":"https://github.com/chef/chef-zero","homepage":null,"size":750,"stargazers_count":472,"watchers_count":472,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":68,"mirror_url":null,"open_issues_count":55,"forks":68,"open_issues":55,"watchers":472,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/chef/chef-zero/pulls/208"},"html":{"href":"https://github.com/chef/chef-zero/pull/208"},"issue":{"href":"https://api.github.com/repos/chef/chef-zero/issues/208"},"comments":{"href":"https://api.github.com/repos/chef/chef-zero/issues/208/comments"},"review_comments":{"href":"https://api.github.com/repos/chef/chef-zero/pulls/208/comments"},"review_comment":{"href":"https://api.github.com/repos/chef/chef-zero/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chef/chef-zero/pulls/208/commits"},"statuses":{"href":"https://api.github.com/repos/chef/chef-zero/statuses/799f727d01519de6e5249a724e3c9ac857031c7e"}}}}