Fix old relay pairing URL TLS compat (#896)

This commit is contained in:
Mohamed Boudra
2026-05-10 19:29:56 +08:00
committed by GitHub
parent ef892bd27d
commit cab42985a5
4 changed files with 50 additions and 4 deletions
+3 -1
View File
@@ -1506,10 +1506,12 @@ export class HostRuntimeStore {
}
async upsertConnectionFromOffer(offer: ConnectionOffer, label?: string): Promise<HostProfile> {
// COMPAT(oldRelayOfferTls): added in v0.1.73, remove after 2026-11-10.
const useTls = offer.relay.useTls ?? shouldUseTlsForDefaultHostedRelay(offer.relay.endpoint);
return this.upsertRelayConnection({
serverId: offer.serverId,
relayEndpoint: offer.relay.endpoint,
useTls: offer.relay.useTls,
useTls,
daemonPublicKeyB64: offer.daemonPublicKeyB64,
label,
});