From: Michael Tremer Date: Sat, 15 Feb 2025 13:06:16 +0000 (+0000) Subject: xfer: Improve our user agent X-Git-Tag: 0.9.30~26 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ed9fb039a56bf460dc2a87516e4e40a474c99a62;p=pakfire.git xfer: Improve our user agent Signed-off-by: Michael Tremer --- 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