Use WebProxy against the server if defined

There are valid use cases for it, e.g. if the ISP decided to block ASF STM server (but whyy)
This commit is contained in:
Archi
2022-12-27 03:13:07 +01:00
parent 905e0e6052
commit d98fde47a4

View File

@@ -81,7 +81,7 @@ internal sealed class RemoteCommunication : IAsyncDisposable, IDisposable {
return;
}
WebBrowser = new WebBrowser(bot.ArchiLogger, extendedTimeout: true);
WebBrowser = new WebBrowser(bot.ArchiLogger, ASF.GlobalConfig?.WebProxy, true);
if (Bot.BotConfig.RemoteCommunication.HasFlag(BotConfig.ERemoteCommunication.PublicListing)) {
HeartBeatTimer = new Timer(