Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no_proxy hosts are not included. #438

Closed
mohanbabubb opened this issue Jun 6, 2017 · 1 comment
Closed

no_proxy hosts are not included. #438

mohanbabubb opened this issue Jun 6, 2017 · 1 comment
Assignees
Milestone

Comments

@mohanbabubb
Copy link

On the script,

proxy_uri = if secure?(uri)
URI.parse(ENV['https_proxy'] || ENV['HTTPS_PROXY'] || '')
else
URI.parse(ENV['http_proxy'] || ENV['HTTP_PROXY'] || '')
end
@logger.debug { "Proxy: #{proxy_uri.host}, #{proxy_uri.port}, #{proxy_uri.user}, #{proxy_uri.password}" }
Net::HTTP::Proxy(proxy_uri.host, proxy_uri.port, proxy_uri.user, proxy_uri.password)
, if have environment variable for no_proxy for some hosts/localhost/local ip's which need to be skipped through proxy but the script had no option to evaluate the localhost and no_proxy environment variable.
Scenario:
If i host a local repo server and run the rake task to use the local repo server for build, its failing.
I think it would be good to add some condition to consider no_proxy during run.

@gberche-orange
Copy link

@nebhale I ran into this issue, and associated commit 834c978 as I was looking for example syntax of the NO_PROXY variable.

I had a hard time understanding the spec which currently says the following but actually asserts the proxy is used.

does not use proxy if host in NO_PROXY
does not use proxy if host in no_proxy

I wonder whether you indeed meant:

uses proxy if host is not in NO_PROXY
uses proxy if host is not in no_proxy

and missed to implement the following cases ?

does not use proxy if host in NO_PROXY
does not use proxy if host in no_proxy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants