mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-04 14:01:17 +12:00
Update napi_helper.cpp
Moved brace and added proxy for CurlSOAPHelper
This commit is contained in:
parent
03708c4513
commit
cf1f97da2c
1 changed files with 7 additions and 1 deletions
|
@ -74,7 +74,8 @@ CurlRequestHelper::CurlRequestHelper()
|
|||
curl_easy_setopt(m_curl, CURLOPT_FOLLOWLOCATION, 1);
|
||||
curl_easy_setopt(m_curl, CURLOPT_MAXREDIRS, 2);
|
||||
|
||||
if(GetConfig().proxy_server.GetValue() != "") {
|
||||
if(GetConfig().proxy_server.GetValue() != "")
|
||||
{
|
||||
curl_easy_setopt(m_curl, CURLOPT_PROXY, GetConfig().proxy_server.GetValue().c_str());
|
||||
}
|
||||
}
|
||||
|
@ -220,6 +221,11 @@ CurlSOAPHelper::CurlSOAPHelper()
|
|||
// SSL
|
||||
curl_easy_setopt(m_curl, CURLOPT_SSL_CTX_FUNCTION, _sslctx_function_SOAP);
|
||||
curl_easy_setopt(m_curl, CURLOPT_SSL_CTX_DATA, NULL);
|
||||
|
||||
if(GetConfig().proxy_server.GetValue() != "")
|
||||
{
|
||||
curl_easy_setopt(m_curl, CURLOPT_PROXY, GetConfig().proxy_server.GetValue().c_str());
|
||||
}
|
||||
}
|
||||
|
||||
CurlSOAPHelper::~CurlSOAPHelper()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue