Commit 7291151076ec1a461b2e5839d1136ab17ed833ac
Make nicer host output
cel committed on 9/3/2018, 5:20:24 AMParent: 13d54825caa9906484c32c0b3ba3483fcc7f1923
Files changed
index.js | changed |
index.js | |||
---|---|---|---|
@@ -72,8 +72,9 @@ | |||
72 | 72 … | var getAbout = memo({cache: lru(100)}, require('./lib/about'), sbot) | |
73 | 73 … | var serveAcmeChallenge = require('ssb-acme-validator')(sbot) | |
74 | 74 … | ||
75 | 75 … | http.createServer(serve).listen(port, host, function () { | |
76 … | + if (/:/.test(host)) host = '[' + host + ']' | ||
76 | 77 … | console.log('[viewer] Listening on http://' + host + ':' + port) | |
77 | 78 … | }) | |
78 | 79 … | ||
79 | 80 … | function serve(req, res) { |
Built with git-ssb-web