diff --git a/proxmox-http/src/client/sync.rs b/proxmox-http/src/client/sync.rs index 41b9c79c..9465d8e1 100644 --- a/proxmox-http/src/client/sync.rs +++ b/proxmox-http/src/client/sync.rs @@ -22,6 +22,14 @@ impl Client { fn agent(&self) -> Result { let mut builder = ureq::AgentBuilder::new(); + + builder = builder.user_agent( + self.options + .user_agent + .as_deref() + .unwrap_or(DEFAULT_USER_AGENT_STRING), + ); + if let Some(proxy_config) = &self.options.proxy_config { builder = builder.proxy(ureq::Proxy::new(proxy_config.to_proxy_string()?)?); }