Change HTTP transport intial connect attempt target (#729)

Co-authored-by: philon- <philon-@users.noreply.github.com>
This commit is contained in:
Jeremy Gallant
2025-07-22 12:56:30 -04:00
committed by GitHub
co-authored by philon-
parent afb7f4bd2e
commit 2e4d306d79
+3 -1
View File
@@ -12,7 +12,9 @@ export class TransportHTTP implements Types.Transport {
tls?: boolean,
): Promise<TransportHTTP> {
const connectionUrl = `${tls ? "https" : "http"}://${address}`;
await fetch(`${connectionUrl}/json/report`);
await fetch(`${connectionUrl}/api/v1/toradio`, {
method: "OPTIONS",
});
await Promise.resolve();
return new TransportHTTP(connectionUrl);
}