Skip to content

Commit f4951dc

Browse files
fix no_proxy behaviour
1 parent bb9a5cf commit f4951dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/net/http.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ def HTTP.new(address, port = nil, p_addr = :ENV, p_port = nil, p_user = nil, p_p
664664
elsif p_addr == :ENV then
665665
http.proxy_from_env = true
666666
else
667-
if p_addr && p_no_proxy && !URI::Generic.use_proxy?(p_addr, p_addr, p_port, p_no_proxy)
667+
if p_addr && p_no_proxy && !URI::Generic.use_proxy?(address, address, port, p_no_proxy)
668668
p_addr = nil
669669
p_port = nil
670670
end

0 commit comments

Comments
 (0)