diff --git a/lib/plugins/console/server.js b/lib/plugins/console/server.js index 1729b1648f..86042c686a 100644 --- a/lib/plugins/console/server.js +++ b/lib/plugins/console/server.js @@ -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.