I did this
- Started a local server, providing the IPv6 binding of
[::]:12345
- Attempted to use libcurl to connect to the server
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.
I did this
[::]:12345I 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.