mirror of
https://github.com/jwinterm/xmr-stak.git
synced 2026-10-19 05:58:41 +02:00
Fix handling of stratum+tcp:// format
This commit is contained in:
@@ -56,7 +56,10 @@ bool plain_socket::set_hostname(const char* sAddr)
|
||||
sAddrMb[ln] = '\0';
|
||||
|
||||
if ((sTmp = strstr(sAddrMb, "//")) != nullptr)
|
||||
{
|
||||
sTmp += 2;
|
||||
memmove(sAddrMb, sTmp, strlen(sTmp) + 1);
|
||||
}
|
||||
|
||||
if ((sPort = strchr(sAddrMb, ':')) == nullptr)
|
||||
return pCallback->set_socket_error("CONNECT error: Pool port number not specified, please use format <hostname>:<port>.");
|
||||
|
||||
Reference in New Issue
Block a user