-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
IP addresses mismatch in --noproxy
and related env variable (in 7.86.0)
#9813
Comments
Introduced in #9775 no doubt |
If the host name is an IP address and the noproxy string contained that IP address with a following comma, it would erroneously not match. Extended test 1614 to verify this combo as well. Reported-by: Henning Schild Fixes #9813
Same issue, other applications using curl libs also affected. Is there a temporary workaround? Need to no-proxy on |
Work-around: if you append
|
Work-around works. I assume this would need to be done on all ip addresses? |
Yes, and you can now use proper CIDR notation so you can match a larger network in a single string, like |
--noproxy
and related env variables--noproxy
and related env variable
I would say that is a regression which might even call for a new release rather soon. Nice to see there is a workaround. But if you ever had the honors to having to work with proxies and related env variables, you will know how horrible all of that is. The variables are used by many tools and they all have their own implementation on dealing with them. While curl is an important player in that game it is not the only one. Just think multiple versions of curl all hoping to use the same In my example i pointed it out via cmdline |
We will certainly take this into consideration. |
Thanks for that quick fix but there is more to it. I tried to make that workaround get a whole complex pipeline green where proxies are needed for several things. The IP just being one of several essential parts of
And again it tries to go via that proxy where it should not. |
Not the same problem as first reported though. |
filed #9821 for the new one |
--noproxy
and related env variable--noproxy
and related env variable (in 7.86.0)
Maybe yes, one could argue but it does not matter. Thanks for taking this into a separate issue. |
arch was not notfied so let my try with a ping @eworm-de alpine is also affected @ncopa opensuse tumbleweed is now also affected by both issues, also trying a ping @pmgdeb debian bookworm is affected ... ping @samueloph fedora and gentoo have backported the patches for this one and #9821 https://github.com/gentoo/gentoo/blob/master/net-misc/curl/curl-7.86.0-r1.ebuild#L98 https://src.fedoraproject.org/rpms/curl/c/394bdcb95657341453d63fe508d549572fee9083 Sorry for the direct maintainer SPAM, but i think this one is important and easy to miss. So i did dig out some names of distros and people to notify all at once, not following individual workflows. Please do not ask me to open a bug, i might do that for debian but not the rest. |
Should be fixed in |
Pushed the fixes to the Debian package at The following commits were picked: Thank you for the heads up @henning-schild :) |
@kdudka : Seems Fedora rawhide is missing b830f9b and b1953c1 to fully solve this issue. |
I did this
I expected the following
both curls downloading the file and not reaching out to the proxy, but if "127.0.0.1" is not the last part of the string ... it will not work
curl/libcurl version
[curl -V output]
This came with 7.86.0 and showed up in a CI pipline testing multiple "modern distros". It came with "alpine:edge" and "archlinux:latest" at the same time. Both switched to that new curl yesterday.
operating system
docker containers of "alpine:edge" and "archlinux:latest" ... or Linux with the latest curl
The text was updated successfully, but these errors were encountered: