mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-04 10:42:04 +00:00
Fix build error on some platform
This commit is contained in:
5 files changed
+21
-23
No files matched your search
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user