From: "stanhu (Stan Hu)" Date: 2022-09-23T04:46:39+00:00 Subject: [ruby-core:110028] [Ruby master Feature#19018] uri/generic: Support comma-delimited entries in no_proxy Issue #19018 has been reported by stanhu (Stan Hu). ---------------------------------------- Feature #19018: uri/generic: Support comma-delimited entries in no_proxy https://bugs.ruby-lang.org/issues/19018 * Author: stanhu (Stan Hu) * Status: Open * Priority: Normal ---------------------------------------- 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](https://github.com/python/cpython/blob/030a713183084594659aefd77b76fe30178e23c8/Lib/urllib/request.py#L2540) and [Golang](https://github.com/golang/go/blob/682a1d2176b02337460aeede0ff9e49429525195/src/vendor/golang.org/x/net/http/httpproxy/proxy.go#L216) split the comma. -- https://bugs.ruby-lang.org/ Unsubscribe: