aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/app.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/app.js b/lib/app.js
index 5630f41..da15d28 100644
--- a/lib/app.js
+++ b/lib/app.js
@@ -54,7 +54,8 @@ App.prototype.go = function () {
http.createServer(function (req, res) {
new Serve(self, req, res).go()
}).listen(self.port, self.host, function () {
- self.log('Listening on http://' + self.host + ':' + self.port)
+ var host = /:/.test(self.host) ? '[' + self.host + ']' : self.host
+ self.log('Listening on http://' + host + ':' + self.port)
})
// invalidate cached About info when new About messages come in