From 488efcb6141caeae3ec5943e7fad6a3c2f9de35b Mon Sep 17 00:00:00 2001 From: Siavash Sameni Date: Tue, 14 Apr 2026 16:54:22 +0400 Subject: [PATCH] feat(ui): birthday attack toggle in settings (default off) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit New setting: "Birthday attack (opens extra ports for hard NAT)" - Default: OFF — no extra latency on call setup - When ON: waits up to 3s for peer's birthday ports if peer has non-cone NAT, adds them to the dial race Gated end-to-end: Settings → localStorage → JS invoke → Rust connect param → birthday wait + target injection. LAN/cone calls unaffected regardless of setting. Co-Authored-By: Claude Opus 4.6 (1M context) --- desktop/index.html | 4 ++++ desktop/src-tauri/src/lib.rs | 7 ++++++- desktop/src/main.ts | 8 ++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/desktop/index.html b/desktop/index.html index 10e0c92..8c0035f 100644 --- a/desktop/index.html +++ b/desktop/index.html @@ -191,6 +191,10 @@ Direct-only mode (no relay fallback — fails if P2P can't connect) +