mirror of
https://github.com/GOSTSec/sgminer
synced 2025-03-10 12:41:02 +00:00
Make detect stratum fail if a proxy has been set up.
This commit is contained in:
parent
51c499a5ae
commit
591c433477
@ -562,6 +562,12 @@ static char *set_rr(enum pool_strategy *strategy)
|
|||||||
* stratum+tcp or by detecting a stratum server response */
|
* stratum+tcp or by detecting a stratum server response */
|
||||||
bool detect_stratum(struct pool *pool, char *url)
|
bool detect_stratum(struct pool *pool, char *url)
|
||||||
{
|
{
|
||||||
|
if (pool->rpc_proxy) {
|
||||||
|
if (!strncasecmp(url, "stratum+tcp://", 14))
|
||||||
|
applog(LOG_WARNING, "Cannot use a stratum server with a proxy");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (!extract_sockaddr(pool, url))
|
if (!extract_sockaddr(pool, url))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user