From 20eeddc86ec81220f6fdb8d61e719197cd051228 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 16 May 2024 22:05:36 +0200 Subject: [PATCH] ignore proxies from the env vars when using UNIX Domain Sockets closes #390 Signed-off-by: Hans-Christoph Steiner --- podman/api/client.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/podman/api/client.py b/podman/api/client.py index 02cf8932..7f5e3f37 100644 --- a/podman/api/client.py +++ b/podman/api/client.py @@ -145,6 +145,8 @@ def __init__( if self.base_url.scheme == "http+unix": self.mount("http://", UDSAdapter(self.base_url.geturl(), **adapter_kwargs)) self.mount("https://", UDSAdapter(self.base_url.geturl(), **adapter_kwargs)) + # ignore proxies from the env vars + self.trust_env = False elif self.base_url.scheme == "http+ssh": self.mount("http://", SSHAdapter(self.base_url.geturl(), **adapter_kwargs))