20260817 同步层HTTP User-Agent改为env可配置RPKI_HTTP_USER_AGENT,默认panda-rpki/0.2

This commit is contained in:
2026-08-17 11:39:22 +08:00
parent e98eb6d68f
commit 49172b57d3
4 changed files with 127 additions and 3 deletions

View File

@@ -29,7 +29,7 @@ fn live_http_fetcher() -> BlockingHttpFetcher {
BlockingHttpFetcher::new(HttpFetcherConfig {
timeout: Duration::from_secs(timeout_secs),
large_body_timeout: Duration::from_secs(timeout_secs),
user_agent: "rpki-dev/0.1 (stage2 live rrdp delta test)".to_string(),
user_agent: "panda-rpki/0.2 (live rrdp delta test)".to_string(),
..HttpFetcherConfig::default()
})
.expect("http fetcher")