mirror of
https://github.com/openbullet/openbullet.git
synced 2023-10-21 07:33:42 -05:00
Proxy sources can now be toggled on/off.
This commit is contained in:
@@ -25,6 +25,9 @@ namespace RuriLib.Models
|
||||
/// <summary>The unique ID of the RemoteProxySource.</summary>
|
||||
public int Id { get; set; } = 0;
|
||||
|
||||
/// <summary>Whether the RemoteProxySource is active or not.</summary>
|
||||
public bool Active { get; set; } = true;
|
||||
|
||||
/// <summary>The Url of the remote source.</summary>
|
||||
public string Url { get; set; } = "";
|
||||
|
||||
|
||||
@@ -1015,7 +1015,7 @@ namespace RuriLib.Runner
|
||||
|
||||
case ProxyReloadSource.Remote:
|
||||
List<CProxy> proxies = new List<CProxy>();
|
||||
Parallel.ForEach(Settings.Proxies.RemoteProxySources, s =>
|
||||
Parallel.ForEach(Settings.Proxies.RemoteProxySources.Where(s => s.Active), s =>
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user