diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2019-01-29 00:11:45 -1000 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2019-01-29 00:20:15 -1000 |
commit | 9b7c66e9644594fa04a5b88ee37583093b9b84dd (patch) | |
tree | 3b7fff9492a058a023cd466806470aec99eef390 /lib/serve.js | |
parent | 6cf5e1b999c6e59b1f8092a99d6b0a462a016b34 (diff) | |
download | patchfoo-9b7c66e9644594fa04a5b88ee37583093b9b84dd.tar.gz patchfoo-9b7c66e9644594fa04a5b88ee37583093b9b84dd.zip |
Omit default ssb-server port
Diffstat (limited to 'lib/serve.js')
-rw-r--r-- | lib/serve.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/serve.js b/lib/serve.js index 61e34da..11e451a 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -4129,6 +4129,7 @@ Serve.prototype.pub = function (path) { var id = String(path).substr(1) try { id = decodeURIComponent(id) } catch(e) {} + var portRegexp = new RegExp(':' + self.app.ssbPort + '$') pull( ph('section', [ ph('h3', ['Pub addresses: ', self.phIdLink(id)]), @@ -4136,7 +4137,7 @@ Serve.prototype.pub = function (path) { self.app.getAddresses(id), pull.map(function (address) { return ph('div', [ - ph('code', address) + ph('code', address.replace(portRegexp, '')) ]) }) ) |