Project

General

Profile

Actions

Feature #19018

closed

uri/generic: Support CIDR blocks in comma-delimited entries in no_proxy

Added by stanhu (Stan Hu) over 1 year ago. Updated over 1 year ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:110028]

Description

Currently URI::Generic.use_proxy? does not treat the no_proxy strings as a comma-delimited value: https://github.com/ruby/ruby/blob/0ed71b37fa9af134fdd5a7fd1cebd171eba83541/lib/uri/generic.rb#L1545-L1564

That means that it's not possible to specify multiple rules, such as:

no_proxy=.example.com,192.168.0.0/8

While there's no official standard for no_proxy(https://about.gitlab.com/blog/2021/01/27/we-need-to-talk-no-proxy/), Python and Golang split the comma.

Updated by stanhu (Stan Hu) over 1 year ago

I submitted https://github.com/ruby/ruby/pull/6424. That method could use some cleanup.

Actions #2

Updated by stanhu (Stan Hu) over 1 year ago

  • Subject changed from uri/generic: Support comma-delimited entries in no_proxy to uri/generic: Support CIDR blocks in comma-delimited entries in no_proxy

Updated by stanhu (Stan Hu) over 1 year ago

Ok, I'm wrong. This seems to work. We can close this issue. Turns out the problem is in gRPC, not Ruby: https://github.com/grpc/grpc/issues/22681

Actions #4

Updated by jeremyevans0 (Jeremy Evans) over 1 year ago

  • Status changed from Open to Closed
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0