allow non https relays

This commit is contained in:
Danny Morabito 2025-08-06 00:16:35 +02:00
parent b0ef76baf0
commit a8fd9eb96b
Signed by: dannym
GPG key ID: 7CC8056A5A04557E

View file

@ -1,7 +1,7 @@
import { main } from "./src/main.ts"; import { main } from "./src/main.ts";
let relay = process.env.RELAY_URL ?? Bun.argv[Bun.argv.length - 1]; 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"; relay = "wss://relay.arx-ccn.com";
main(relay) main(relay)