From 4e943d2a1ca97bb4bd8c8969cbe9632f3aa6ceb9 Mon Sep 17 00:00:00 2001 From: fireice-uk Date: Sat, 8 Jul 2017 22:58:23 +0100 Subject: [PATCH] Fix handling of stratum+tcp:// format --- socket.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/socket.cpp b/socket.cpp index 565eb76..257da22 100644 --- a/socket.cpp +++ b/socket.cpp @@ -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 :.");