From ac32f48d8dad63749f449d13b7437078cfe38fc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chang=20Yu-heng=20=28=E5=BC=B5=E6=98=B1=E7=8F=A9=29?= Date: Wed, 30 Jul 2014 10:39:02 +0800 Subject: [PATCH] Should listen to localhost only by default Can listen to all IP addresses by setting config or passing argument, thus we should give the minimal authority by default. --- lib/plugins/console/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plugins/console/server.js b/lib/plugins/console/server.js index 1729b1648f..fc8622655e 100644 --- a/lib/plugins/console/server.js +++ b/lib/plugins/console/server.js @@ -8,7 +8,7 @@ module.exports = function(args, callback){ log = hexo.log; var app = connect(), - serverIp = args.i || args.ip || config.server_ip || '0.0.0.0', + serverIp = args.i || args.ip || config.server_ip || 'localhost', port = parseInt(args.p || args.port || config.port, 10) || 4000, useDrafts = args.d || args.drafts || config.render_drafts || false, root = config.root;