From ed9fb039a56bf460dc2a87516e4e40a474c99a62 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 15 Feb 2025 13:06:16 +0000 Subject: [PATCH] xfer: Improve our user agent Signed-off-by: Michael Tremer --- src/pakfire/xfer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pakfire/xfer.c b/src/pakfire/xfer.c index 634cf16e..7f711824 100644 --- a/src/pakfire/xfer.c +++ b/src/pakfire/xfer.c @@ -276,7 +276,8 @@ static int pakfire_xfer_setup(struct pakfire_xfer* xfer) { } // Be a good net citizen and set a user agent - curl_easy_setopt(xfer->handle, CURLOPT_USERAGENT, PACKAGE_NAME "/" PACKAGE_VERSION); + curl_easy_setopt(xfer->handle, CURLOPT_USERAGENT, + "Mozilla/5.0 (compatible; " PACKAGE_NAME "/" PACKAGE_VERSION "; +https://www.ipfire.org/)"); #ifdef ENABLE_DEBUG // Enable logging/debugging -- 2.39.5