Fixed build with APP_DEBUG.

This commit is contained in:
XMRig 2018-04-11 08:29:02 +07:00
parent 1ebaf677e0
commit a73ad9b089
6 changed files with 12 additions and 12 deletions

View file

@ -76,7 +76,6 @@ Pool::Pool(const char *url) :
m_keepAlive(0),
m_port(kDefaultPort),
m_algo(xmrig::CRYPTONIGHT),
m_url(url),
m_variant(xmrig::VARIANT_AUTO)
{
parse(url);
@ -150,6 +149,7 @@ bool Pool::parse(const char *url)
return false;
}
m_url = url;
if (base[0] == '[') {
return parseIPv6(base);
}
@ -157,7 +157,7 @@ bool Pool::parse(const char *url)
const char *port = strchr(base, ':');
if (!port) {
m_host = base;
return false;
return true;
}
const size_t size = port++ - base + 1;