Make nicer host output
This commit is contained in:
@@ -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)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user