{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/901","repository_url":"https://api.github.com/repos/webpack/webpack-dev-server","labels_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/901/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/901/comments","events_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/901/events","html_url":"https://github.com/webpack/webpack-dev-server/pull/901","id":225934906,"number":901,"title":"Add 'lan' option","user":{"login":"sliwey","id":6010111,"avatar_url":"https://avatars1.githubusercontent.com/u/6010111?v=3","gravatar_id":"","url":"https://api.github.com/users/sliwey","html_url":"https://github.com/sliwey","followers_url":"https://api.github.com/users/sliwey/followers","following_url":"https://api.github.com/users/sliwey/following{/other_user}","gists_url":"https://api.github.com/users/sliwey/gists{/gist_id}","starred_url":"https://api.github.com/users/sliwey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sliwey/subscriptions","organizations_url":"https://api.github.com/users/sliwey/orgs","repos_url":"https://api.github.com/users/sliwey/repos","events_url":"https://api.github.com/users/sliwey/events{/privacy}","received_events_url":"https://api.github.com/users/sliwey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-03T09:56:34Z","updated_at":"2017-05-03T09:56:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/webpack/webpack-dev-server/pulls/901","html_url":"https://github.com/webpack/webpack-dev-server/pull/901","diff_url":"https://github.com/webpack/webpack-dev-server/pull/901.diff","patch_url":"https://github.com/webpack/webpack-dev-server/pull/901.patch"},"body":"  Let the browser open with local IP.\r\n\r\n**What kind of change does this PR introduce?**\r\nfeature\r\n\r\n**Did you add or update the `examples/`?**\r\nno\r\n\r\n**Summary**\r\nAccording to [#147](https://github.com/webpack/webpack-dev-server/issues/147), server can be accessed via IP, but when set `host` to `0.0.0.0` and `open` to `true`, the browser will open  `http://0.0.0.0`, but it's inaccessible.\r\n\r\nThis PR allows to set `lan` to `true`, so that the browser can open with local IP.\r\n\r\n**Example usage in webpack config:**\r\n```javascript\r\ndevServer: {\r\n  host: '0.0.0.0',\r\n  disableHostCheck: true,\r\n  open: true,\r\n  lan: true,  // set true to let the browser open with local IP\r\n  ...\r\n}\r\n```\r\n\r\n**Does this PR introduce a breaking change?**\r\nno\r\n"},"comment":{"url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/comments/298868768","html_url":"https://github.com/webpack/webpack-dev-server/pull/901#issuecomment-298868768","issue_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/901","id":298868768,"user":{"login":"jsf-clabot","id":23005875,"avatar_url":"https://avatars2.githubusercontent.com/u/23005875?v=3","gravatar_id":"","url":"https://api.github.com/users/jsf-clabot","html_url":"https://github.com/jsf-clabot","followers_url":"https://api.github.com/users/jsf-clabot/followers","following_url":"https://api.github.com/users/jsf-clabot/following{/other_user}","gists_url":"https://api.github.com/users/jsf-clabot/gists{/gist_id}","starred_url":"https://api.github.com/users/jsf-clabot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsf-clabot/subscriptions","organizations_url":"https://api.github.com/users/jsf-clabot/orgs","repos_url":"https://api.github.com/users/jsf-clabot/repos","events_url":"https://api.github.com/users/jsf-clabot/events{/privacy}","received_events_url":"https://api.github.com/users/jsf-clabot/received_events","type":"User","site_admin":false},"created_at":"2017-05-03T09:56:35Z","updated_at":"2017-05-03T09:56:35Z","body":"[![CLA assistant check](https://cla.js.foundation/pull/badge/not_signed)](https://cla.js.foundation/webpack/webpack-dev-server?pullRequest=901) <br/>Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our [Contributor License Agreement](https://cla.js.foundation/webpack/webpack-dev-server?pullRequest=901) before we can accept your contribution.<br/>"}}
{"actor":{"display_login":"jsf-clabot"}}