From 46a525ff3d12134e4658d856543fb0db4f872dac Mon Sep 17 00:00:00 2001 From: ospab Date: Thu, 28 May 2026 15:30:48 +0300 Subject: [PATCH] Fix Tauri RealityConfig init --- ostp-gui/src-tauri/src/lib.rs | 1 + test.json | Bin 0 -> 126 bytes 2 files changed, 1 insertion(+) create mode 100644 test.json diff --git a/ostp-gui/src-tauri/src/lib.rs b/ostp-gui/src-tauri/src/lib.rs index dc461e6..5cb3fac 100644 --- a/ostp-gui/src-tauri/src/lib.rs +++ b/ostp-gui/src-tauri/src/lib.rs @@ -159,6 +159,7 @@ fn map_to_client_config(raw: &ClientConfigRaw, mode: &str) -> ostp_client::confi connect_timeout_ms: 5000, }, reality: ostp_client::config::RealityConfig { + enabled: raw.reality.as_ref().and_then(|t| t.enabled).unwrap_or(false), sni: raw.reality.as_ref().and_then(|t| t.sni.clone()).unwrap_or_default(), fp: raw.reality.as_ref().and_then(|t| t.fp.clone()).unwrap_or_default(), pbk: raw.reality.as_ref().and_then(|t| t.pbk.clone()).unwrap_or_default(), diff --git a/test.json b/test.json new file mode 100644 index 0000000000000000000000000000000000000000..4b74d8df0fb5e83af144efa6175e18ced047a408 GIT binary patch literal 126 zcmezWubM%LL4hHcA)g_IA(bJ9!3xNWVJHT&ix|qlWDJ827BP^zYM{y_hD?S$pk9d1 jXdrFKV8md~pvPbU#fCsLO@TZJjA4jns0Bh^1}+8w1`-tM literal 0 HcmV?d00001