connect with full multiaddr but remember tokenless

This commit is contained in:
Andre Staltz 2024-01-19 15:43:15 +02:00
parent 516fba0ff0
commit 554a36e466
No known key found for this signature in database
GPG Key ID: 9EDE23EA7E8A4890
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ function initHubClient(peer, config) {
peer.set.add(HUBS_SUBDOMAIN, multiaddrWithoutToken, (err, _) => {
// prettier-ignore
if (err) return cb(new Error('Failed to add Hub to my Set feed', {cause: err}))
peer.net.connect(multiaddrWithoutToken, (err, rpc) => {
peer.net.connect(multiaddr, (err, rpc) => {
// prettier-ignore
if (err) return cb(new Error('Failed to connect to Hub after adding it to my Set feed', {cause: err}))
cb(null, void 0)