mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2025-06-09 08:56:13 +00:00
removed invalid check on proxy
This commit is contained in:
parent
a1dd3b5b9b
commit
ecb4868620
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user