Skip to content

Commit

Permalink
fixup! feat: Download file with token
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanChane committed Aug 12, 2024
1 parent 042e8f1 commit 3fc73c0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions clashtui/src/utils/tui/impl_profile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,13 @@ impl ClashTuiUtil {
let profile_yaml_path;

let mut result = Vec::new();
let profile_item = self.gen_profile_item(profile_name)?;
let mut profile_item = self.gen_profile_item(profile_name)?;
let with_proxy = self.check_proxy();
if ! with_proxy { // mihomo is stop.
if let Some(ref mut url_item) = profile_item.url_item {
url_item.with_proxy = false;
}
}
if Self::is_profile_with_suburl(&profile_item.typ) {
profile_yaml_path = self.get_profile_yaml_path(profile_name)?;

Expand All @@ -401,7 +407,6 @@ impl ClashTuiUtil {
net_providers.extend(providers);
}

let with_proxy = self.check_proxy();
for (_, providers) in net_providers {
for (name, url, path) in providers {
let url_domain = Utils::extract_domain(url.url.as_str()).unwrap_or("No domain");
Expand Down

0 comments on commit 3fc73c0

Please sign in to comment.