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 0000000..4b74d8d Binary files /dev/null and b/test.json differ