From cf1f97da2c4b898607fdece3398f2f4e8143134a Mon Sep 17 00:00:00 2001 From: tastymeatball <44088711+tastymeatball@users.noreply.github.com> Date: Fri, 26 Aug 2022 16:57:37 +0200 Subject: [PATCH] Update napi_helper.cpp Moved brace and added proxy for CurlSOAPHelper --- src/Cemu/napi/napi_helper.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Cemu/napi/napi_helper.cpp b/src/Cemu/napi/napi_helper.cpp index 4272d8dc..188c8840 100644 --- a/src/Cemu/napi/napi_helper.cpp +++ b/src/Cemu/napi/napi_helper.cpp @@ -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()