Skip to content

Commit

Permalink
Merge pull request #391 from eighthave/issue-390
Browse files Browse the repository at this point in the history
ignore proxies from the env vars when using UNIX Domain Sockets
  • Loading branch information
openshift-merge-bot[bot] authored May 17, 2024
2 parents 4d67ca2 + 20eeddc commit b8d2c87
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions podman/api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit b8d2c87

Please sign in to comment.