We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f137e4 commit 78d7c06Copy full SHA for 78d7c06
add-on/src/lib/ipfs-client/external.js
@@ -8,7 +8,8 @@ exports.init = async function (opts) {
8
9
const url = opts.apiURL
10
const protocol = url.protocol.substr(0, url.protocol.length - 1) // http: -> http
11
- const api = IpfsApi({ host: url.hostname, port: url.port, protocol })
+ const host = url.hostname.replace(/[[\]]+/g, '') // temporary fix for ipv6: https://github.com/ipfs-shipyard/ipfs-companion/issues/668
12
+ const api = IpfsApi({ host, port: url.port, protocol })
13
return api
14
}
15
0 commit comments