From 7c7b75537e2acee6dc8d8b8f62c12dd24c382a3b Mon Sep 17 00:00:00 2001 From: Astro Date: Mon, 24 Apr 2023 19:38:29 +0200 Subject: [PATCH] hunter: add URL in User-Agent --- hunter/src/main.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/hunter/src/main.rs b/hunter/src/main.rs index c66e459..0e42578 100644 --- a/hunter/src/main.rs +++ b/hunter/src/main.rs @@ -78,11 +78,9 @@ async fn run() { .timeout(Duration::from_secs(30)) .tcp_keepalive(Duration::from_secs(300)) .pool_max_idle_per_host(0) - .user_agent(concat!( - env!("CARGO_PKG_NAME"), - "/", - env!("CARGO_PKG_VERSION"), - )) + .user_agent( + format!("{}/{} (+https://fedi.buzz/)", env!("CARGO_PKG_NAME"), env!("CARGO_PKG_VERSION")) + ) .deflate(true) .gzip(true) .trust_dns(true)