diff options
Diffstat (limited to 'lib/serve.js')
-rw-r--r-- | lib/serve.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/serve.js b/lib/serve.js index d92117e..a3082c6 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -4208,7 +4208,6 @@ 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)]), @@ -4216,7 +4215,7 @@ Serve.prototype.pub = function (path) { self.app.getAddresses(id), pull.map(function (address) { return ph('div', [ - ph('code', address.replace(portRegexp, '')) + ph('code', self.app.removeDefaultPort(address)) ]) }) ) |