refactor: optimize enhance mode strategy

This commit is contained in:
GyDi
2022-03-28 01:07:14 +08:00
parent 0a9c81772f
commit 5a38468144
4 changed files with 120 additions and 81 deletions

View File

@@ -24,7 +24,8 @@ pub fn resolve_setup(app: &App) {
*profiles = Profiles::read_file();
clash.set_window(app.get_window("main"));
log_if_err!(clash.activate(&profiles, true));
log_if_err!(clash.activate(&profiles));
log_if_err!(clash.activate_enhanced(&profiles, true, true));
verge.init_sysproxy(clash.info.port.clone());
// enable tun mode