Make nicer host output

This commit is contained in:
cel
2018-09-02 22:20:24 -07:00
parent 13d54825ca
commit 7291151076
+1
View File
@@ -73,6 +73,7 @@ exports.init = function (sbot, config) {
var serveAcmeChallenge = require('ssb-acme-validator')(sbot)
http.createServer(serve).listen(port, host, function () {
if (/:/.test(host)) host = '[' + host + ']'
console.log('[viewer] Listening on http://' + host + ':' + port)
})