From d9bbb4549997a73a3d156ff2a86af7e525ab4069 Mon Sep 17 00:00:00 2001 From: SPQV MF Date: Wed, 22 Nov 2023 03:16:45 +0800 Subject: [PATCH] docs: update doc comment on `try_proxy_from_env` method to reflect the `proxy-from-env` feature flag --- src/agent.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/agent.rs b/src/agent.rs index a114eaad..30a0038e 100644 --- a/src/agent.rs +++ b/src/agent.rs @@ -325,8 +325,9 @@ impl AgentBuilder { /// Attempt to detect proxy settings from the environment, i.e. HTTP_PROXY /// - /// The default is `false`, i.e. not detecting proxy from env since this is - /// a potential security risk. + /// The default is `false` without the `proxy-from-env` feature flag, i.e. + /// not detecting proxy from env, due to the potential security risk and to + /// maintain backward compatibility. /// /// If the `proxy` is set on the builder, this setting has no effect. pub fn try_proxy_from_env(mut self, do_try: bool) -> Self {