Skip to content

Commit

Permalink
Merge pull request #755 from changyuheng/pr-correctness-bind-ip
Browse files Browse the repository at this point in the history
Correct the IP address displayed by server
  • Loading branch information
tommy351 committed Jul 30, 2014
2 parents 4377fc7 + e3f0a36 commit 1545874
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/plugins/console/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ module.exports = function(args, callback){
log.i('Using drafts.');
}

// for display purpose only
var ip = serverIp === '0.0.0.0' ? 'localhost' : serverIp;

log.i('Hexo is running at ' + 'http://%s:%d%s'.underline + '. Press Ctrl+C to stop.', ip, port, root);
log.i('Hexo is running at ' + 'http://%s:%d%s'.underline + '. Press Ctrl+C to stop.', serverIp, port, root);

/**
* Fired after server started.
Expand Down

0 comments on commit 1545874

Please # to comment.