mirror of
https://github.com/RoboSats/robosats.git
synced 2025-07-20 17:53:22 +00:00
Check protocol
This commit is contained in:
@ -19,7 +19,8 @@ class RoboPool {
|
|||||||
);
|
);
|
||||||
|
|
||||||
if (settings.host) {
|
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)) {
|
if (federationRelays.includes(hostNostr)) {
|
||||||
this.relays.push(hostNostr);
|
this.relays.push(hostNostr);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user