{"action":"opened","number":725,"pull_request":{"url":"https://api.github.com/repos/webpack/webpack-dev-server/pulls/725","id":99548559,"html_url":"https://github.com/webpack/webpack-dev-server/pull/725","diff_url":"https://github.com/webpack/webpack-dev-server/pull/725.diff","patch_url":"https://github.com/webpack/webpack-dev-server/pull/725.patch","issue_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/725","number":725,"state":"open","locked":false,"title":"Replace 0.0.0.0 with localhost on open","user":{"login":"mstijak","id":433394,"avatar_url":"https://avatars.githubusercontent.com/u/433394?v=3","gravatar_id":"","url":"https://api.github.com/users/mstijak","html_url":"https://github.com/mstijak","followers_url":"https://api.github.com/users/mstijak/followers","following_url":"https://api.github.com/users/mstijak/following{/other_user}","gists_url":"https://api.github.com/users/mstijak/gists{/gist_id}","starred_url":"https://api.github.com/users/mstijak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mstijak/subscriptions","organizations_url":"https://api.github.com/users/mstijak/orgs","repos_url":"https://api.github.com/users/mstijak/repos","events_url":"https://api.github.com/users/mstijak/events{/privacy}","received_events_url":"https://api.github.com/users/mstijak/received_events","type":"User","site_admin":false},"body":"**Summary**\r\nIt's common to set `host: '0.0.0.0'` to enable access to the development server from the network, but that doesn't play well if `open: true` is set. \r\nChrome displays an error instead of the application.\r\n\r\nThe fix is simple. Replace `0.0.0.0` with `localhost` before passing the URL to the browser. \r\n\r\n**Does this PR introduce a breaking change?**\r\nNo\r\n\r\n**Other information**\r\nSee http://superuser.com/questions/846721/chrome-wont-access-http-0-0-0-04200.\r\n","created_at":"2016-12-28T13:23:40Z","updated_at":"2016-12-28T13:23:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/webpack/webpack-dev-server/pulls/725/commits","review_comments_url":"https://api.github.com/repos/webpack/webpack-dev-server/pulls/725/comments","review_comment_url":"https://api.github.com/repos/webpack/webpack-dev-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/725/comments","statuses_url":"https://api.github.com/repos/webpack/webpack-dev-server/statuses/cd19a2277ecd9cbe6db55d6c1fda298e210aee74","head":{"label":"mstijak:master","ref":"master","sha":"cd19a2277ecd9cbe6db55d6c1fda298e210aee74","user":{"login":"mstijak","id":433394,"avatar_url":"https://avatars.githubusercontent.com/u/433394?v=3","gravatar_id":"","url":"https://api.github.com/users/mstijak","html_url":"https://github.com/mstijak","followers_url":"https://api.github.com/users/mstijak/followers","following_url":"https://api.github.com/users/mstijak/following{/other_user}","gists_url":"https://api.github.com/users/mstijak/gists{/gist_id}","starred_url":"https://api.github.com/users/mstijak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mstijak/subscriptions","organizations_url":"https://api.github.com/users/mstijak/orgs","repos_url":"https://api.github.com/users/mstijak/repos","events_url":"https://api.github.com/users/mstijak/events{/privacy}","received_events_url":"https://api.github.com/users/mstijak/received_events","type":"User","site_admin":false},"repo":{"id":77533221,"name":"webpack-dev-server","full_name":"mstijak/webpack-dev-server","owner":{"login":"mstijak","id":433394,"avatar_url":"https://avatars.githubusercontent.com/u/433394?v=3","gravatar_id":"","url":"https://api.github.com/users/mstijak","html_url":"https://github.com/mstijak","followers_url":"https://api.github.com/users/mstijak/followers","following_url":"https://api.github.com/users/mstijak/following{/other_user}","gists_url":"https://api.github.com/users/mstijak/gists{/gist_id}","starred_url":"https://api.github.com/users/mstijak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mstijak/subscriptions","organizations_url":"https://api.github.com/users/mstijak/orgs","repos_url":"https://api.github.com/users/mstijak/repos","events_url":"https://api.github.com/users/mstijak/events{/privacy}","received_events_url":"https://api.github.com/users/mstijak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mstijak/webpack-dev-server","description":"Serves a webpack app. Updates the browser on changes.","fork":true,"url":"https://api.github.com/repos/mstijak/webpack-dev-server","forks_url":"https://api.github.com/repos/mstijak/webpack-dev-server/forks","keys_url":"https://api.github.com/repos/mstijak/webpack-dev-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mstijak/webpack-dev-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mstijak/webpack-dev-server/teams","hooks_url":"https://api.github.com/repos/mstijak/webpack-dev-server/hooks","issue_events_url":"https://api.github.com/repos/mstijak/webpack-dev-server/issues/events{/number}","events_url":"https://api.github.com/repos/mstijak/webpack-dev-server/events","assignees_url":"https://api.github.com/repos/mstijak/webpack-dev-server/assignees{/user}","branches_url":"https://api.github.com/repos/mstijak/webpack-dev-server/branches{/branch}","tags_url":"https://api.github.com/repos/mstijak/webpack-dev-server/tags","blobs_url":"https://api.github.com/repos/mstijak/webpack-dev-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mstijak/webpack-dev-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mstijak/webpack-dev-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/mstijak/webpack-dev-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mstijak/webpack-dev-server/statuses/{sha}","languages_url":"https://api.github.com/repos/mstijak/webpack-dev-server/languages","stargazers_url":"https://api.github.com/repos/mstijak/webpack-dev-server/stargazers","contributors_url":"https://api.github.com/repos/mstijak/webpack-dev-server/contributors","subscribers_url":"https://api.github.com/repos/mstijak/webpack-dev-server/subscribers","subscription_url":"https://api.github.com/repos/mstijak/webpack-dev-server/subscription","commits_url":"https://api.github.com/repos/mstijak/webpack-dev-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/mstijak/webpack-dev-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/mstijak/webpack-dev-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/mstijak/webpack-dev-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/mstijak/webpack-dev-server/contents/{+path}","compare_url":"https://api.github.com/repos/mstijak/webpack-dev-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mstijak/webpack-dev-server/merges","archive_url":"https://api.github.com/repos/mstijak/webpack-dev-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mstijak/webpack-dev-server/downloads","issues_url":"https://api.github.com/repos/mstijak/webpack-dev-server/issues{/number}","pulls_url":"https://api.github.com/repos/mstijak/webpack-dev-server/pulls{/number}","milestones_url":"https://api.github.com/repos/mstijak/webpack-dev-server/milestones{/number}","notifications_url":"https://api.github.com/repos/mstijak/webpack-dev-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mstijak/webpack-dev-server/labels{/name}","releases_url":"https://api.github.com/repos/mstijak/webpack-dev-server/releases{/id}","deployments_url":"https://api.github.com/repos/mstijak/webpack-dev-server/deployments","created_at":"2016-12-28T13:02:13Z","updated_at":"2016-12-28T13:02:15Z","pushed_at":"2016-12-28T13:15:49Z","git_url":"git://github.com/mstijak/webpack-dev-server.git","ssh_url":"git@github.com:mstijak/webpack-dev-server.git","clone_url":"https://github.com/mstijak/webpack-dev-server.git","svn_url":"https://github.com/mstijak/webpack-dev-server","homepage":null,"size":651,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"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":"webpack:master","ref":"master","sha":"fcf5f3cfbe7cf7bb629e801cc200358c792df017","user":{"login":"webpack","id":2105791,"avatar_url":"https://avatars.githubusercontent.com/u/2105791?v=3","gravatar_id":"","url":"https://api.github.com/users/webpack","html_url":"https://github.com/webpack","followers_url":"https://api.github.com/users/webpack/followers","following_url":"https://api.github.com/users/webpack/following{/other_user}","gists_url":"https://api.github.com/users/webpack/gists{/gist_id}","starred_url":"https://api.github.com/users/webpack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webpack/subscriptions","organizations_url":"https://api.github.com/users/webpack/orgs","repos_url":"https://api.github.com/users/webpack/repos","events_url":"https://api.github.com/users/webpack/events{/privacy}","received_events_url":"https://api.github.com/users/webpack/received_events","type":"Organization","site_admin":false},"repo":{"id":5839692,"name":"webpack-dev-server","full_name":"webpack/webpack-dev-server","owner":{"login":"webpack","id":2105791,"avatar_url":"https://avatars.githubusercontent.com/u/2105791?v=3","gravatar_id":"","url":"https://api.github.com/users/webpack","html_url":"https://github.com/webpack","followers_url":"https://api.github.com/users/webpack/followers","following_url":"https://api.github.com/users/webpack/following{/other_user}","gists_url":"https://api.github.com/users/webpack/gists{/gist_id}","starred_url":"https://api.github.com/users/webpack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webpack/subscriptions","organizations_url":"https://api.github.com/users/webpack/orgs","repos_url":"https://api.github.com/users/webpack/repos","events_url":"https://api.github.com/users/webpack/events{/privacy}","received_events_url":"https://api.github.com/users/webpack/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/webpack/webpack-dev-server","description":"Serves a webpack app. Updates the browser on changes.","fork":false,"url":"https://api.github.com/repos/webpack/webpack-dev-server","forks_url":"https://api.github.com/repos/webpack/webpack-dev-server/forks","keys_url":"https://api.github.com/repos/webpack/webpack-dev-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/webpack/webpack-dev-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/webpack/webpack-dev-server/teams","hooks_url":"https://api.github.com/repos/webpack/webpack-dev-server/hooks","issue_events_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/events{/number}","events_url":"https://api.github.com/repos/webpack/webpack-dev-server/events","assignees_url":"https://api.github.com/repos/webpack/webpack-dev-server/assignees{/user}","branches_url":"https://api.github.com/repos/webpack/webpack-dev-server/branches{/branch}","tags_url":"https://api.github.com/repos/webpack/webpack-dev-server/tags","blobs_url":"https://api.github.com/repos/webpack/webpack-dev-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/webpack/webpack-dev-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/webpack/webpack-dev-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/webpack/webpack-dev-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/webpack/webpack-dev-server/statuses/{sha}","languages_url":"https://api.github.com/repos/webpack/webpack-dev-server/languages","stargazers_url":"https://api.github.com/repos/webpack/webpack-dev-server/stargazers","contributors_url":"https://api.github.com/repos/webpack/webpack-dev-server/contributors","subscribers_url":"https://api.github.com/repos/webpack/webpack-dev-server/subscribers","subscription_url":"https://api.github.com/repos/webpack/webpack-dev-server/subscription","commits_url":"https://api.github.com/repos/webpack/webpack-dev-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/webpack/webpack-dev-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/webpack/webpack-dev-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/webpack/webpack-dev-server/contents/{+path}","compare_url":"https://api.github.com/repos/webpack/webpack-dev-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/webpack/webpack-dev-server/merges","archive_url":"https://api.github.com/repos/webpack/webpack-dev-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/webpack/webpack-dev-server/downloads","issues_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues{/number}","pulls_url":"https://api.github.com/repos/webpack/webpack-dev-server/pulls{/number}","milestones_url":"https://api.github.com/repos/webpack/webpack-dev-server/milestones{/number}","notifications_url":"https://api.github.com/repos/webpack/webpack-dev-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/webpack/webpack-dev-server/labels{/name}","releases_url":"https://api.github.com/repos/webpack/webpack-dev-server/releases{/id}","deployments_url":"https://api.github.com/repos/webpack/webpack-dev-server/deployments","created_at":"2012-09-17T10:52:18Z","updated_at":"2016-12-27T08:42:47Z","pushed_at":"2016-12-25T20:50:27Z","git_url":"git://github.com/webpack/webpack-dev-server.git","ssh_url":"git@github.com:webpack/webpack-dev-server.git","clone_url":"https://github.com/webpack/webpack-dev-server.git","svn_url":"https://github.com/webpack/webpack-dev-server","homepage":null,"size":651,"stargazers_count":1219,"watchers_count":1219,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":361,"mirror_url":null,"open_issues_count":17,"forks":361,"open_issues":17,"watchers":1219,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/webpack/webpack-dev-server/pulls/725"},"html":{"href":"https://github.com/webpack/webpack-dev-server/pull/725"},"issue":{"href":"https://api.github.com/repos/webpack/webpack-dev-server/issues/725"},"comments":{"href":"https://api.github.com/repos/webpack/webpack-dev-server/issues/725/comments"},"review_comments":{"href":"https://api.github.com/repos/webpack/webpack-dev-server/pulls/725/comments"},"review_comment":{"href":"https://api.github.com/repos/webpack/webpack-dev-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/webpack/webpack-dev-server/pulls/725/commits"},"statuses":{"href":"https://api.github.com/repos/webpack/webpack-dev-server/statuses/cd19a2277ecd9cbe6db55d6c1fda298e210aee74"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":1,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"mstijak"}}