mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-28 09:46:35 +02:00
Fix non ssl connections
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
Reference in New Issue
Block a user