{"action":"created","issue":{"url":"https://api.github.com/repos/hexojs/hexo-server/issues/14","labels_url":"https://api.github.com/repos/hexojs/hexo-server/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/hexojs/hexo-server/issues/14/comments","events_url":"https://api.github.com/repos/hexojs/hexo-server/issues/14/events","html_url":"https://github.com/hexojs/hexo-server/pull/14","id":102224936,"number":14,"title":"[Feature Fix] [Chrome 42] Fix redirect address","user":{"login":"haoyuchen1992","id":5420789,"avatar_url":"https://avatars.githubusercontent.com/u/5420789?v=3","gravatar_id":"","url":"https://api.github.com/users/haoyuchen1992","html_url":"https://github.com/haoyuchen1992","followers_url":"https://api.github.com/users/haoyuchen1992/followers","following_url":"https://api.github.com/users/haoyuchen1992/following{/other_user}","gists_url":"https://api.github.com/users/haoyuchen1992/gists{/gist_id}","starred_url":"https://api.github.com/users/haoyuchen1992/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haoyuchen1992/subscriptions","organizations_url":"https://api.github.com/users/haoyuchen1992/orgs","repos_url":"https://api.github.com/users/haoyuchen1992/repos","events_url":"https://api.github.com/users/haoyuchen1992/events{/privacy}","received_events_url":"https://api.github.com/users/haoyuchen1992/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-20T20:03:08Z","updated_at":"2015-12-15T08:23:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/hexojs/hexo-server/pulls/14","html_url":"https://github.com/hexojs/hexo-server/pull/14","diff_url":"https://github.com/hexojs/hexo-server/pull/14.diff","patch_url":"https://github.com/hexojs/hexo-server/pull/14.patch"},"body":"### Purpose\r\nIn the old version of Chrome (below 42), 0.0.0.0 is non-routable address.  \r\n![screenshot 2015-08-20 15 19 15](https://cloud.githubusercontent.com/assets/5420789/9393958/54511f78-4753-11e5-9360-06b59576dd9f.png)\r\n\r\n### Change\r\nWith the similar idea from https://github.com/jekyll/jekyll/issues/3048, `127.0.0.1:4000` may be a good replacement and also works well for local implementation.\r\n\r\n### Side effect\r\nSo the difference between `0.0.0.0` and `127.0.0.1` are shown in [StackExchange](http://serverfault.com/questions/78048/whats-the-difference-between-ip-address-0-0-0-0-and-127-0-0-1)\r\n> When a service is listening on 0.0.0.0 this means the service is listening on all the configured network interfaces, when listening on 127.0.0.1 the service is only bound to the loopback interface (only available on the local machine)\r\n"},"comment":{"url":"https://api.github.com/repos/hexojs/hexo-server/issues/comments/164681926","html_url":"https://github.com/hexojs/hexo-server/pull/14#issuecomment-164681926","issue_url":"https://api.github.com/repos/hexojs/hexo-server/issues/14","id":164681926,"user":{"login":"EvanCarroll","id":19922,"avatar_url":"https://avatars.githubusercontent.com/u/19922?v=3","gravatar_id":"","url":"https://api.github.com/users/EvanCarroll","html_url":"https://github.com/EvanCarroll","followers_url":"https://api.github.com/users/EvanCarroll/followers","following_url":"https://api.github.com/users/EvanCarroll/following{/other_user}","gists_url":"https://api.github.com/users/EvanCarroll/gists{/gist_id}","starred_url":"https://api.github.com/users/EvanCarroll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EvanCarroll/subscriptions","organizations_url":"https://api.github.com/users/EvanCarroll/orgs","repos_url":"https://api.github.com/users/EvanCarroll/repos","events_url":"https://api.github.com/users/EvanCarroll/events{/privacy}","received_events_url":"https://api.github.com/users/EvanCarroll/received_events","type":"User","site_admin":false},"created_at":"2015-12-15T08:23:36Z","updated_at":"2015-12-15T08:23:36Z","body":"Actually my suggestion is to reject this patch entirely. This is the default in node under Express 4, and in [http.listen](https://nodejs.org/api/http.html). I can't read #8 because I am stupid American. However, I would issue a warning that the default is bad practice and inherited from Express 4. On changing the debug message, I agree it's currently very confusing because of the http. My suggestion if listening on 0.0.0.0 to write instead,\r\n\r\n    var os = require('os');\r\n    var url = require('url').format({protocol: 'http', hostname: os.hostname(), port: port });\r\n    console.debug('Hexo is listening for *all* connections on ' + url);\r\n\r\nOr, something of the like because that's true."}}