diff --git a/lib/server.js b/lib/server.js index b4c361e..4a262a3 100644 --- a/lib/server.js +++ b/lib/server.js @@ -86,6 +86,8 @@ function checkPort(ip, port) { function formatAddress(ip, port, root) { var hostname = ip; if (ip === '0.0.0.0' || ip === '::') { + hostname = ''; + } else if (ip === 'localhost' || ip === '127.0.0.1') { hostname = 'localhost'; }