Hi Björn.
On 20.12.19 14:53, Björn Jacke wrote:
Hi,
currently if you use stick-tables and you follow most of the examples and
tutorials out there, you use it with "stick-table type ip ...". I guess that
many people (like me in the beginning) don't realize that ip is IPv4 only and
you have to use type ipv6 to have support for IPv4 *and* IPv6.
It's mentioned in the doc, isn't it.
http://cbonte.github.io/haproxy-dconv/2.1/configuration.html#4.2-stick-table%20type
```
ip a table declared with "type ip" will only store IPv4 addresses.
This form is very compact (about 50 bytes per entry) and allows
very fast entry lookup and stores with almost no overhead. This
is mainly used to store client source IP addresses.
```
As I don't use the type IP I trust you that ipv6 stores both types, maybe this
should also be documented.
I'd like to propose to make a change for one of the next major versions of
haproxy that "ip" gets aliases to what "ipv6" currently is and eventually
introduce a new ipv4 type which equals to what type "ip" is now.
What do others here think about this?
Sounds good, would you like to create a patch for that?
Björn
Regards
Aleks