1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-10 06:43:13 +02:00

Fix modulemanager issue due to changes from an hour ago.

"./unrealircd module upgrade" is called by "make install" and now that
we use generic URL framework, the src/url_curl.c did not take into
account that at that stage ~/unrealircd/conf/tls/curl-ca-bundle.crt
may not exist yet, so fallback to <source>/doc/conf/tls/curl-ca-bundle.crt.
The src/url_unreal.c already did that. As did the old modulemanager
code that was removed an hour ago.
This commit is contained in:
Bram Matthys
2023-11-24 14:12:53 +01:00
parent 36323f4294
commit 44203caea3
+2
View File
@@ -97,6 +97,8 @@ static void set_curl_tls_options(CURL *curl)
#endif
snprintf(buf, sizeof(buf), "%s/tls/curl-ca-bundle.crt", CONFDIR);
if (!file_exists(buf))
snprintf(buf, sizeof(buf), "%s/doc/conf/tls/curl-ca-bundle.crt", BUILDDIR);
curl_easy_setopt(curl, CURLOPT_CAINFO, buf);
}