From 5fd075830822130e4ff77196171139e821819fbf Mon Sep 17 00:00:00 2001 From: koalasat Date: Tue, 20 May 2025 11:54:35 +0200 Subject: [PATCH] Fix relay conection --- frontend/src/models/Coordinator.model.ts | 4 ++-- frontend/src/services/RoboPool/index.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/models/Coordinator.model.ts b/frontend/src/models/Coordinator.model.ts index 3ae5e6b8..f863523b 100644 --- a/frontend/src/models/Coordinator.model.ts +++ b/frontend/src/models/Coordinator.model.ts @@ -306,9 +306,9 @@ export class Coordinator { getRelayUrl = (network: 'mainnet' | 'testnet', hostUrl: string, selfHosted: boolean): string => { if (selfHosted && this.shortAlias !== 'local') { - return `ws://${hostUrl.replace(/^https?:\/\//, '')}/${network}/${this.shortAlias}/relay`; + return `ws://${hostUrl.replace(/^https?:\/\//, '')}/${network}/${this.shortAlias}/relay/`; } else { - return `ws://${this.url.replace(/^https?:\/\//, '')}/relay`; + return `ws://${this.url.replace(/^https?:\/\//, '')}/relay/`; } }; } diff --git a/frontend/src/services/RoboPool/index.ts b/frontend/src/services/RoboPool/index.ts index 65738fff..c255da59 100644 --- a/frontend/src/services/RoboPool/index.ts +++ b/frontend/src/services/RoboPool/index.ts @@ -19,7 +19,7 @@ class RoboPool { ); if (settings.host) { - const hostNostr = `ws://${settings.host.replace(/^https?:\/\//, '')}/relay`; + const hostNostr = `ws://${settings.host.replace(/^https?:\/\//, '')}/relay/`; if (federationRelays.includes(hostNostr)) { this.relays.push(hostNostr); }