I fix through this PR, the regexp that cause the trouble. In fact, the regexp intended to pick 2a01:cafe:cafe::beef from [2a01:cafe:cafe::beef]:4242 was also activated by every single IPv6 without port indication (as [ and ] was optional), leading to invalid IPv6: because 2a01:cafe:cafe::beef was replaced by 2a01:cafe:cafe: and so on.
By requiring [ and ] to not be optional, if the text doesn't match the regexp, no replacement is made, the IPv6 is then kept valid.
Hi!
Thanks for your awesome project!
I tried to use this project in an IPv6 infra, behind a reverse proxy and I got the following response from the auth server:
Leading to:
My nginx configured that way:
And my YAML looking like this:
I fix through this PR, the regexp that cause the trouble. In fact, the regexp intended to pick
2a01:cafe:cafe::beef
from[2a01:cafe:cafe::beef]:4242
was also activated by every single IPv6 without port indication (as[
and]
was optional), leading to invalid IPv6: because2a01:cafe:cafe::beef
was replaced by2a01:cafe:cafe:
and so on.By requiring
[
and]
to not be optional, if the text doesn't match the regexp, no replacement is made, the IPv6 is then kept valid.