Fix non ssl connections

This commit is contained in:
greenart7c3
2025-08-15 07:35:01 -03:00
parent d8461c2a74
commit 25f5551a98

View File

@@ -36,7 +36,7 @@ fun NormalizedRelayUrl.toHttp() =
if (url.startsWith("wss://")) {
"https${url.drop(3)}"
} else if (url.startsWith("ws://")) {
"https${url.drop(2)}"
"http${url.drop(2)}"
} else {
"https://$url"
}