git ssb

9+

cel / ssb-viewer



Commit 7291151076ec1a461b2e5839d1136ab17ed833ac

Make nicer host output

cel committed on 9/3/2018, 5:20:24 AM
Parent: 13d54825caa9906484c32c0b3ba3483fcc7f1923

Files changed

index.jschanged
index.jsView
@@ -72,8 +72,9 @@
7272 var getAbout = memo({cache: lru(100)}, require('./lib/about'), sbot)
7373 var serveAcmeChallenge = require('ssb-acme-validator')(sbot)
7474
7575 http.createServer(serve).listen(port, host, function () {
76 + if (/:/.test(host)) host = '[' + host + ']'
7677 console.log('[viewer] Listening on http://' + host + ':' + port)
7778 })
7879
7980 function serve(req, res) {

Built with git-ssb-web