From af4b5d96575c785129cf90033f6efa895f621f45 Mon Sep 17 00:00:00 2001 From: lbl <1791778603@qq.com> Date: Sat, 22 Aug 2026 22:38:38 +0800 Subject: [PATCH] refactor(jni): remove legacy no_tun config field fix(ui): clarify mapping exit description --- vnt-jni/src/lib.rs | 5 ----- vnt-web/ui/src/views/ConfigEditor.vue | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/vnt-jni/src/lib.rs b/vnt-jni/src/lib.rs index d6eaaff..4bf7aea 100644 --- a/vnt-jni/src/lib.rs +++ b/vnt-jni/src/lib.rs @@ -917,8 +917,6 @@ fn parse_config_from_json(json_str: &str) -> anyhow::Result { no_nat: bool, #[serde(default)] device_mode: DeviceMode, - #[serde(default, rename = "no_tun")] - legacy_no_tun: Option, #[serde(default)] mtu: Option, #[serde(default)] @@ -934,9 +932,6 @@ fn parse_config_from_json(json_str: &str) -> anyhow::Result { } let cfg: ConfigJson = serde_json::from_str(json_str)?; - if cfg.legacy_no_tun.is_some() { - anyhow::bail!("configuration key 'no_tun' was removed; use device_mode = \"no|tun|tap\""); - } let server_addrs: Vec = cfg .server diff --git a/vnt-web/ui/src/views/ConfigEditor.vue b/vnt-web/ui/src/views/ConfigEditor.vue index 7db7e34..27923fa 100644 --- a/vnt-web/ui/src/views/ConfigEditor.vue +++ b/vnt-web/ui/src/views/ConfigEditor.vue @@ -504,7 +504,7 @@ const sectionTitleClass = "text-md mb-4 flex items-center font-bold text-slate-9