1
0
mirror of https://github.com/JKorf/CryptoExchange.Net synced 2025-06-09 00:46:19 +00:00

removed invalid check on proxy

This commit is contained in:
JKorf 2020-03-03 09:24:00 +01:00
parent a1dd3b5b9b
commit ecb4868620

View File

@ -1,5 +1,4 @@
using System; using System.Security;
using System.Security;
namespace CryptoExchange.Net.Objects namespace CryptoExchange.Net.Objects
{ {
@ -36,7 +35,6 @@ namespace CryptoExchange.Net.Objects
{ {
} }
/// <inheritdoc />
/// <summary> /// <summary>
/// Create new settings for a proxy /// Create new settings for a proxy
/// </summary> /// </summary>
@ -48,7 +46,6 @@ namespace CryptoExchange.Net.Objects
{ {
} }
/// <inheritdoc />
/// <summary> /// <summary>
/// Create new settings for a proxy /// Create new settings for a proxy
/// </summary> /// </summary>
@ -58,9 +55,6 @@ namespace CryptoExchange.Net.Objects
/// <param name="password">The proxy password</param> /// <param name="password">The proxy password</param>
public ApiProxy(string host, int port, string? login, SecureString? password) public ApiProxy(string host, int port, string? login, SecureString? password)
{ {
if (!host.StartsWith("http"))
throw new ArgumentException("Proxy host should start with either http:// or https://");
Host = host; Host = host;
Port = port; Port = port;
Login = login; Login = login;