]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: tools: modify hash_ipanon in order to use it in cli
authorErwan Le Goas <elegoas@haproxy.com>
Thu, 29 Sep 2022 08:25:31 +0000 (10:25 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 29 Sep 2022 08:53:14 +0000 (10:53 +0200)
commit5eef1588a110597e16b403221e3226d8f4779d05
tree0ea65743e0bd36efe3bef21f73a312c0f5c99626
parent3f4ae6194e372098565355f8c032e80402280e4c
MINOR: tools: modify hash_ipanon in order to use it in cli

Add a parameter hasport to return a simple hash or ipstring when
ipstring has no port. Doesn't hash if scramble is null. Add
option PA_O_PORT_RESOLVE to str2sa_range. Add a case UNIX.
Those modification permit to use hash_ipanon in cli section
in order to dump the same anonymization of address in the
configuration file and with CLI.

No backport needed, except if anonymization mechanism is backported.
include/haproxy/tools.h
src/cfgparse.c
src/tools.c