1
0
mirror of https://github.com/JKorf/CryptoExchange.Net synced 2025-06-07 16:06:15 +00:00

Removed invalid check preventing setting a unauthorized proxy

This commit is contained in:
JKorf 2019-12-10 10:19:03 +01:00
parent d81b59ffbd
commit 69a618b508

View File

@ -58,9 +58,6 @@ namespace CryptoExchange.Net.Objects
/// <param name="password">The proxy password</param>
public ApiProxy(string host, int port, string? login, SecureString? password)
{
if (string.IsNullOrEmpty(login))
throw new ArgumentException("Proxy login not provided");
if (!host.StartsWith("http"))
throw new ArgumentException("Proxy host should start with either http:// or https://");