From a8fd9eb96bd7cb29d4db2d248e55f86b618f4ac7 Mon Sep 17 00:00:00 2001 From: Danny Morabito Date: Wed, 6 Aug 2025 00:16:35 +0200 Subject: [PATCH] allow non https relays --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index c00edb7..2e9d445 100644 --- a/index.ts +++ b/index.ts @@ -1,7 +1,7 @@ import { main } from "./src/main.ts"; let relay = process.env.RELAY_URL ?? Bun.argv[Bun.argv.length - 1]; -if (!relay?.startsWith("wss://")) +if (!relay?.startsWith("wss://") && !relay?.startsWith("ws://")) relay = "wss://relay.arx-ccn.com"; main(relay)