On Tue, May 06, 2025 at 09:44:34AM +0200, Björn Jacke wrote:
> Hi,
> 
> after noticing this some years ago, I ran into this again: The haproxy
> configuration examples and tutorials like the one at 
> https://www.haproxy.com/documentation/haproxy-configuration-tutorials/proxying-essentials/custom-rules/stick-tables/
> propose the use of "stick-table  type ip ...". While the name "ip" suggests
> that this can be actually any IP address this is limiting the stick-table to
> IPv4 only. To use stick-tables that work for both IPv4 and IPv6, you have to
> use "stick-table type ipv6 ...". This is counter-intuitive from the naming
> and it's bad for all the documentation that proposes such configurations
> that don't work for IPv6.
> 
> I'd propose to introduce a "ipv4" for stick-tables and make "ip" an alias
> for "ipv6" as the latter one works for both IPv4 and IPv6. Second best
> option would at least be to fix the documentation and make the examples IPv6
> proof.

I was absolutely certain that it was already the case, I thought we had
changed this years ago. But checking the code it's indeed not the case,
that's a bit of a shock to me! I think we had discussed it and nothing
changed, for whatever reasons possibly ranging from "not the right moment"
to "will use more RAM".

However, this is a breaking change, we cannot afford to do that right now
in LTS but we could plan it for 3.3. We could also accept ipv4 right now
so as to ease the transition to new versions.

> Let me know if I should open a bug report for that.

Yes please, so that we can track it as well.

Thank you!
Willy


Reply via email to