commit de7ca50
grunfink
·
2026-09-29 06:37:38 +0000 UTC
parent f12039c
New configuration directive 'force_ipv6_requests'.
3 files changed,
+7,
-4
M
Makefile
+2,
-2
1@@ -61,12 +61,12 @@ activitypub.o: activitypub.c xs.h xs_json.h xs_curl.h xs_url.h xs_mime.h \
2 xs_webmention.h xs_http.h xs_http_codes.h snac.h
3 data.o: data.c xs.h xs_hex.h xs_io.h xs_json.h xs_openssl.h xs_glob.h \
4 xs_set.h xs_time.h xs_regex.h xs_match.h xs_unicode.h xs_random.h \
5- xs_po.h xs_http.h xs_http_codes.h snac.h
6+ xs_po.h xs_http.h xs_http_codes.h xs_list_tools.h xs_curl.h snac.h
7 format.o: format.c xs.h xs_regex.h xs_mime.h xs_html.h xs_json.h \
8 xs_time.h xs_match.h xs_unicode.h snac.h
9 html.o: html.c xs.h xs_io.h xs_json.h xs_regex.h xs_set.h xs_openssl.h \
10 xs_time.h xs_mime.h xs_match.h xs_html.h xs_curl.h xs_unicode.h xs_url.h \
11- xs_random.h xs_http.h xs_http_codes.h snac.h
12+ xs_random.h xs_http.h xs_http_codes.h xs_list_tools.h snac.h
13 http.o: http.c xs.h xs_io.h xs_openssl.h xs_curl.h xs_time.h xs_json.h \
14 xs_http.h xs_http_codes.h snac.h
15 httpd.o: httpd.c xs.h xs_io.h xs_json.h xs_socket.h xs_unix_socket.h \
+2,
-2
1@@ -40,12 +40,12 @@ activitypub.o: activitypub.c xs.h xs_json.h xs_curl.h xs_url.h xs_mime.h \
2 xs_webmention.h xs_http.h xs_http_codes.h snac.h
3 data.o: data.c xs.h xs_hex.h xs_io.h xs_json.h xs_openssl.h xs_glob.h \
4 xs_set.h xs_time.h xs_regex.h xs_match.h xs_unicode.h xs_random.h \
5- xs_po.h xs_http.h xs_http_codes.h snac.h
6+ xs_po.h xs_http.h xs_http_codes.h xs_list_tools.h xs_curl.h snac.h
7 format.o: format.c xs.h xs_regex.h xs_mime.h xs_html.h xs_json.h \
8 xs_time.h xs_match.h xs_unicode.h snac.h
9 html.o: html.c xs.h xs_io.h xs_json.h xs_regex.h xs_set.h xs_openssl.h \
10 xs_time.h xs_mime.h xs_match.h xs_html.h xs_curl.h xs_unicode.h xs_url.h \
11- xs_random.h xs_http.h xs_http_codes.h snac.h
12+ xs_random.h xs_http.h xs_http_codes.h xs_list_tools.h snac.h
13 http.o: http.c xs.h xs_io.h xs_openssl.h xs_curl.h xs_time.h xs_json.h \
14 xs_http.h xs_http_codes.h snac.h
15 httpd.o: httpd.c xs.h xs_io.h xs_json.h xs_socket.h xs_unix_socket.h \
M
data.c
+3,
-0
1@@ -16,6 +16,7 @@
2 #include "xs_po.h"
3 #include "xs_http.h"
4 #include "xs_list_tools.h"
5+#include "xs_curl.h"
6
7 #include "snac.h"
8
9@@ -87,6 +88,8 @@ int srv_open(const char *basedir, int auto_upgrade)
10 dbglvl = xs_dict_get(srv_config, "dbglevel");
11 proto = xs_dict_get_def(srv_config, "protocol", "https");
12
13+ xs_curl_force_ipv6 = xs_is_true(xs_dict_get(srv_config, "force_ipv6_requests"));
14+
15 if (host == NULL || prefix == NULL)
16 error = xs_str_new("ERROR: cannot get server data");
17 else {