Skip to content

Commit 5d89e48

Browse files
committed
Fix WinGUp downloading fail behind corporate MITM proxies
Fix #103, fix https://community.notepad-plus-plus.org/topic/27427/plugins-admin-gets-curl-error
1 parent 5dc0ef9 commit 5d89e48

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/winmain.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ Update mode:\r\n\
156156
\r\n\
157157
gup [-vVERSION_VALUE] [-infoUrl=URL] [-chkCertKeyId=CERT_KEYID]\r\n\
158158
\r\n\
159-
-chkCert4InfoXML : Enable signature check for XML (XMLDsig) returned from server.\r\n\
159+
-chkCert4InfoXML : Enable signature check for XML (XMLDSig) returned from server.\r\n\
160160
Enable this when the server signs the XML; it ensure the XML\r\n\
161161
has not been altered or hijacked.\r\n\
162162
-chkCertKeyId4XML= : Use the certificate Key ID for authentication. If ignored,\r\n\
@@ -981,6 +981,8 @@ bool downloadBinary(const wstring& urlFrom, const wstring& destTo, const wstring
981981
curl_easy_setopt(curl, CURLOPT_PROXYAUTH, CURLAUTH_ANY);
982982
}
983983

984+
curl_easy_setopt(curl, CURLOPT_SSL_OPTIONS, CURLSSLOPT_REVOKE_BEST_EFFORT);
985+
984986
res = curl_easy_perform(curl);
985987

986988
curl_easy_cleanup(curl);

0 commit comments

Comments
 (0)