feat: add compression support and fix tun config overwrite issue

This commit is contained in:
vffuunnyy
2025-08-16 01:56:56 +07:00
parent d38e93ac7e
commit c82f4e50d2
3 changed files with 21 additions and 2 deletions

View File

@@ -202,7 +202,9 @@ pub async fn enhance() -> (Mapping, Vec<String>, HashMap<String, ResultLog>) {
});
let patch_tun = value.as_mapping().cloned().unwrap_or(Mapping::new());
for (key, value) in patch_tun.into_iter() {
tun.insert(key, value);
if !tun.contains_key(&key) {
tun.insert(key, value);
}
}
config.insert("tun".into(), tun.into());
} else {