diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-04-18 21:11:40 -0700 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-04-18 21:11:40 -0700 |
commit | 3c9f0621cd6d605de9beeacfc4703539f1590ab4 (patch) | |
tree | 2c347140081aa55bb411e14217cd50db13f2eb51 /lib | |
parent | 1894fca3bc64b329bfb559b17f5826daf0e14666 (diff) | |
download | patchfoo-3c9f0621cd6d605de9beeacfc4703539f1590ab4.tar.gz patchfoo-3c9f0621cd6d605de9beeacfc4703539f1590ab4.zip |
Print http address in copy-pastable format
Diffstat (limited to 'lib')
-rw-r--r-- | lib/app.js | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |