This commit is contained in:
Łukasz Domeradzki
2025-08-24 19:09:03 +02:00
parent 2df1c439c4
commit d489bebb85
2 changed files with 2 additions and 8 deletions

View File

@@ -177,10 +177,7 @@ public sealed class BotConfig {
return null;
}
WebProxy proxy = new() {
Address = uri,
BypassProxyOnLocal = true
};
WebProxy proxy = new(uri, true);
if (!string.IsNullOrEmpty(WebProxyUsername) || !string.IsNullOrEmpty(WebProxyPassword)) {
NetworkCredential credentials = new();

View File

@@ -172,10 +172,7 @@ public sealed class GlobalConfig {
return null;
}
WebProxy proxy = new() {
Address = uri,
BypassProxyOnLocal = true
};
WebProxy proxy = new(uri, true);
if (!string.IsNullOrEmpty(WebProxyUsername) || !string.IsNullOrEmpty(WebProxyPassword)) {
NetworkCredential credentials = new();