Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Properly handle $no_proxy/localhost in a user's environment. #17

Closed
wants to merge 1 commit into from

Conversation

davidt
Copy link

@davidt davidt commented May 13, 2011

When a user has $http(s)_proxy defined, vmc will often fail to target a local
VCAP environment. The cause of this was that vmc was looking directly to the
http_proxy or https_proxy environment variables without checking that the host
was not in $no_proxy, nor checking whether the target resolved to localhost.
Both of these checks are handled via the open-uri module's find_proxy() method.

When a user has $http(s)_proxy defined, vmc will often fail to target a local
VCAP environment. The cause of this was that vmc was looking directly to the
http_proxy or https_proxy environment variables without checking that the host
was not in $no_proxy, nor checking whether the target resolved to localhost.
Both of these checks are handled via the open-uri module's find_proxy() method.
@pbozeman
Copy link

pulled. Thanks!

@pbozeman pbozeman closed this May 18, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants