-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
libcurl does not recognize [::] as a valid IPv6 address #5344
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
Comments
It's a non-routable address used for binding, how is it a valid destination? |
|
For posterity, the While if (!fl4->daddr) {
fl4->daddr = fl4->saddr;
if (!fl4->daddr)
fl4->daddr = fl4->saddr = htonl(INADDR_LOOPBACK);
// ...
} (source: net/ipv4/route.c) |
I vote no |
With what motivation? Why should our URL parser restrict what IP address the user can specify? It seems entirely arbitrary. We already accept |
Reported-by: Pavel Volgarev Fixes #5344
I agree with @bagder. |
I changed my mind. Those are all good points. |
I did this
[::]:12345
I expected the following
libcurl successfully connecting to the server.
instead, I got this
Received
URL using bad/illegal format or missing URL (code 3)
error from libcurl.curl/libcurl version
7.69.1 (with IPv6 enabled)
operating system
Debian-based corporate build.
notes
Changing
[::]
to[::1]
fixes the problem.Looks like the bug was introduced in 4706603. To comment on this,
[::]
(and even::
) seems to be a valid IPv6 address according to https://en.wikipedia.org/wiki/0.0.0.0.This works as expected in 7.66.0.
The text was updated successfully, but these errors were encountered: