url
url copied to clipboard
Parsing URLs with IPv6 host
I tried to use URLs with IPv6 host for a Browser.application and the navigation didn't work. The log message in the console directed me to this page: https://github.com/elm/core/blob/1.0.0/hints/1.md . When tried the same with IPv4 or a domain name, then it worked.
The URLs that I tried:
- http://[::]:7272/ui/
- http://[::1]:7272/ui/
Is this a bug or just the feature is not supported currently?
Appears to be a bug. Line 167 of url/Url.elm indexes the first :
in the host of the URL and, if it detects more than one :
, assumes the URL is invalid. Should I write a PR that checks for this IPv6 shape before failing?
i am using alertmanager in a pure ipv6 environment. and got the same exact issue. if i use a domain name instead of ipv6 address, it works.
I also ran into this problem. PR: https://github.com/elm/url/pull/35
we are having this issue as well
@evancz Can you please look at the fix provided by @AlexanderEkdahl and if all is fine merge the fix? We have been waiting for this for long time.
We are also facing issue, If changes provided by @AlexanderEkdahl is fine then can it be merged?
Could you please update on this ticket
We are also facing issue, If changes provided by @AlexanderEkdahl is fine then can it be merged?
Could you pls comment on this
@evancz @MrL1605 Could you please help on this.