mirror of
https://github.com/RoboSats/robosats.git
synced 2025-07-19 09:13:28 +00:00
Check protocol
This commit is contained in:
@ -19,7 +19,8 @@ class RoboPool {
|
||||
);
|
||||
|
||||
if (settings.host) {
|
||||
const hostNostr = `ws://${settings.host.replace(/^https?:\/\//, '')}/relay/`;
|
||||
const protocol = hostUrl.includes('https') ? 'wss' : 'ws';
|
||||
const hostNostr = `${protocol}://${settings.host.replace(/^https?:\/\//, '')}/relay/`;
|
||||
if (federationRelays.includes(hostNostr)) {
|
||||
this.relays.push(hostNostr);
|
||||
}
|
||||
|
Reference in New Issue
Block a user