summaryrefslogtreecommitdiff
path: root/src/lib/internet.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-07-26 11:47:24 +0200
committerCarl Hetherington <cth@carlh.net>2024-07-26 11:47:24 +0200
commit95abcc7d18997c1391423d15506bf03ab20997e6 (patch)
tree64fc82bdb7b45275436e1216d81847087ffb1788 /src/lib/internet.cc
parent4d721e683b584fe48e7905e44ab3da23afe76145 (diff)
parent98b7a493933a5a47c6e1abb21ef2710ad2730a0e (diff)
Merge branch 'main' into v2.17.x
Diffstat (limited to 'src/lib/internet.cc')
-rw-r--r--src/lib/internet.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/internet.cc b/src/lib/internet.cc
index 1f280dc5d..8c5b99e61 100644
--- a/src/lib/internet.cc
+++ b/src/lib/internet.cc
@@ -110,6 +110,8 @@ get_from_url (string url, bool pasv, bool skip_pasv_ip, ScopedTemporary& temp)
if (!pasv) {
curl_easy_setopt (curl, CURLOPT_FTPPORT, "-");
}
+ curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
+ curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
/* Maximum time is 20s */
curl_easy_setopt (curl, CURLOPT_TIMEOUT, 20);