Added a setting in RuriLib > Proxies to shuffle Proxies on Start.

This commit is contained in:
ruri
2019-04-17 10:50:54 +02:00
parent c85cb82dbe
commit 64b1aac47e
5 changed files with 33 additions and 6 deletions
+2 -2
View File
@@ -982,7 +982,7 @@ namespace RuriLib.Runner
ProxyPool = new ProxyPool(
GetProxiesFromAPI(Settings.Proxies.ReloadPath,
Settings.Proxies.ReloadType,
Settings.Proxies.ParseWithIPRegex));
Settings.Proxies.ParseWithIPRegex), Settings.Proxies.ShuffleOnStart);
}
catch (Exception ex) { RaiseMessageArrived(LogLevel.Error, $"Could not contact the reload API - {ex.Message}", true); }
break;
@@ -993,7 +993,7 @@ namespace RuriLib.Runner
ProxyPool = new ProxyPool(
GetProxiesFromFile(Settings.Proxies.ReloadPath,
Settings.Proxies.ReloadType,
Settings.Proxies.ParseWithIPRegex));
Settings.Proxies.ParseWithIPRegex), Settings.Proxies.ShuffleOnStart);
}
catch (Exception ex) { RaiseMessageArrived(LogLevel.Error, $"Could not read the proxies from file - {ex.Message}", true); }
break;