aboutsummaryrefslogtreecommitdiff
path: root/lib/serve.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/serve.js')
-rw-r--r--lib/serve.js3
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, ''))
])
})
)