fix: add ws:// relay

closes https://github.com/v0l/snort/issues/600
This commit is contained in:
2025-05-06 12:38:57 +01:00
parent e4446962ac
commit 948337228e

View File

@ -21,7 +21,7 @@ const RelaySettingsPage = () => {
async function addNewRelay() {
const urls = removeUndefined(
(newRelay?.trim()?.split("\n") ?? []).map(a => {
if (!a.startsWith("wss://")) {
if (!a.startsWith("wss://") && !a.startsWith("ws://")) {
a = `wss://${a}`;
}
return sanitizeRelayUrl(a);