Fix build error on some platform

This commit is contained in:
Tindy X committed 2020-01-07 15:48:39 +08:00
1 parent b94dce44ed
commit bebefd9511
5 files changed
+21 -23

No files matched your search

+1 -1
View File
@@ -49,7 +49,7 @@ std::string curlGet(std::string url, std::string proxy)
std::string buildSocks5ProxyString(std::string addr, int port, std::string username, std::string password)
{
std::string authstr = username != "" && password != "" ? username + ":" + password + "@" : "";
std::string proxystr = "socks5://" + authstr + addr + ":" + std::__cxx11::to_string(port);
std::string proxystr = "socks5://" + authstr + addr + ":" + std::to_string(port);
return proxystr;
}