mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-07-10 01:24:41 -06:00
Update napi_helper.cpp
Moved brace and added proxy for CurlSOAPHelper
This commit is contained in:
parent
03708c4513
commit
cf1f97da2c
@ -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…
Reference in New Issue
Block a user