X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fnetbase.cpp;h=41dec48d7324a8791a54b04ecbeb2fd013cb4bee;hp=a9caddfc631e583354e9b5328dc4d304ca9833b2;hb=5ae858b9cb5aa7815773fb067e5e1a7ffa07119e;hpb=d6d558a15b40e14a3f9bf23308adf7a630a57485 diff --git a/src/netbase.cpp b/src/netbase.cpp index a9caddf..41dec48 100644 --- a/src/netbase.cpp +++ b/src/netbase.cpp @@ -252,7 +252,7 @@ bool static Socks5(string strDest, uint16_t port, SOCKET& hSocket) strSocks5 += strDest; strSocks5 += static_cast((port >> 8) & 0xFF); strSocks5 += static_cast((port >> 0) & 0xFF); - ret = send(hSocket, strSocks5.c_str(), strSocks5.size(), MSG_NOSIGNAL); + ret = send(hSocket, strSocks5.data(), strSocks5.size(), MSG_NOSIGNAL); if (ret != (ssize_t)strSocks5.size()) { CloseSocket(hSocket);