allow non https relays
This commit is contained in:
parent
b0ef76baf0
commit
a8fd9eb96b
1 changed files with 1 additions and 1 deletions
2
index.ts
2
index.ts
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue