Confirm reconnect pairings and add connection discovery settings

Setup now waits for both IndexedDB writes: the acceptor acknowledges its
write, a failure on either side is reported to both people, and the
proposer removes its copy if the acceptor could not save. Every session
that authenticates the paired device compares a check value derived from
the stored pairing, so a one-sided pairing (interrupted setup, or Turn off
reconnect on one device) is turned off on the other side too.

The tracker is chosen under Network settings > Connection discovery
(manual, default from VITE_TRACKER_URL, or custom), stored per browser and
editable during a session.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
SchluffeandClaude Opus 5.5 committed 2026-10-21 00:30:04 +02:00
1 parent 3659956967
commit acba97a7e1
10 files changed
+309 -55

No files matched your search

+1 -1
View File
@@ -4,5 +4,5 @@ TURN_HOST=127.0.0.1
TURN_PORT=3478
VITE_ICE_ENDPOINT=/api/ice-servers
VITE_STUN_URL=stun:127.0.0.1:3478
# Optional: prefills the tracker for reconnect setup, e.g. the local container.
# Optional: the Default tracker under Connection discovery, e.g. the local container.
# VITE_TRACKER_URL=ws://localhost:8000