Closed samuelcolvin closed 1 year ago
According to the URL standard non-special URLs are parsed using the opaque host parser. That means the host is just a string, not an IPv4 address.
To exemplify, see parsing foo vs http. http:// rejects an invalid IPv4, whereas foo:// does not (because it parses it as a string)
Interesting, thanks for clarifying.
Sorry for the noise.
The following code fails on the final assert:
With:
I think this is a bug, I think the behaviour should be the same as for a v6 ip address.