From 471c40a1310d3ca0bc6d8c220c4c174543a8c510 Mon Sep 17 00:00:00 2001 From: cel Date: Tue, 4 Sep 2018 17:21:01 -0700 Subject: Fix IPv6 URL --- lib/app.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/app.js') diff --git a/lib/app.js b/lib/app.js index 8b6d897..c647d39 100644 --- a/lib/app.js +++ b/lib/app.js @@ -36,6 +36,9 @@ function App(sbot, config) { this.previewContacts = conf.previewContacts == null ? false : conf.previewContacts this.useOoo = conf.ooo == null ? false : conf.ooo + var host1 = /:/.test(this.host) ? '[' + this.host + ']' : this.host + this.baseUrl = 'http://' + host1 + ':' + this.port + var base = conf.base || '/' this.opts = { base: base, -- cgit v1.2.3