fix: tun mode switch is not effective

This commit is contained in:
huzibaca
2024-10-24 02:16:28 +08:00
parent 30b0c45539
commit caf4ee6863
2 changed files with 3 additions and 5 deletions

View File

@@ -259,9 +259,7 @@ pub async fn enhance() -> (Mapping, Vec<String>, HashMap<String, ResultLog>) {
});
}
if enable_tun {
config = use_tun(config).await;
}
config = use_tun(config, enable_tun).await;
config = use_sort(config);
let mut exists_set = HashSet::new();