Skip to content

Commit

Permalink
Should listen to localhost only by default
Browse files Browse the repository at this point in the history
Can listen to all IP addresses by setting config or passing argument,
thus we should give the minimal authority by default.
  • Loading branch information
mrjohannchang committed Jul 30, 2014
1 parent 083187f commit ac32f48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plugins/console/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ac32f48

Please # to comment.