Skip to content

Commit

Permalink
ignore no_proxy check for iso when host is nil, fix #956
Browse files Browse the repository at this point in the history
  • Loading branch information
mpapis committed Oct 3, 2014
1 parent 9154099 commit 1ffa1ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/veewee/provider/core/helper/iso.rb
Expand Up @@ -58,6 +58,7 @@ def download_progress(url,localfile)

#return true if host is excluded from proxy via no_proxy env var, false otherwise
def no_proxy? host
return false if host.nil?
@no_proxy ||= (ENV['NO_PROXY'] || ENV['no_proxy'] || 'localhost, 127.0.0.1').split(/\s*,\s*/)
@no_proxy.each do |host_addr|
return true if host.match(Regexp.quote(host_addr)+'$')
Expand Down

0 comments on commit 1ffa1ba

Please sign in to comment.