Skip to content

Commit ce9248d

Browse files
authored
fix(proxy): set https system proxy on windows (#201)
1 parent 7400a20 commit ce9248d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/client/proxy/matcher.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -657,9 +657,12 @@ mod win {
657657
return;
658658
}
659659

660-
if builder.http.is_empty() {
661-
if let Ok(val) = settings.get_string("ProxyServer") {
662-
builder.http = val;
660+
if let Ok(val) = settings.get_string("ProxyServer") {
661+
if builder.http.is_empty() {
662+
builder.http = val.clone();
663+
}
664+
if builder.https.is_empty() {
665+
builder.https = val;
663666
}
664667
}
665668

0 commit comments

Comments
 (0)