From 9868cf7915148a211c4dee828b9128f141d56c65 Mon Sep 17 00:00:00 2001 From: NepDisk Date: Sun, 19 Oct 2025 15:20:05 -0400 Subject: [PATCH] set CURLOPT_MAXREDIRS to 30 --- src/http-mserv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/http-mserv.c b/src/http-mserv.c index 813d9c72a..fe534f9f7 100644 --- a/src/http-mserv.c +++ b/src/http-mserv.c @@ -224,6 +224,7 @@ HMS_connect (const char *format, ...) curl_easy_setopt(curl, CURLOPT_IPRESOLVE, (long)CURL_IPRESOLVE_V4); curl_easy_setopt(curl, CURLOPT_TIMEOUT, (long)cv_masterserver_timeout.value); + curl_easy_setopt(curl, CURLOPT_MAXREDIRS, 30L); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, HMS_on_read); curl_easy_setopt(curl, CURLOPT_WRITEDATA, buffer);