]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: proxy: also look for the closest option among cfg_opts3
authorWilly Tarreau <w@1wt.eu>
Tue, 15 Sep 2026 14:37:58 +0000 (16:37 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Oct 2026 07:22:33 +0000 (09:22 +0200)
commit5605269b1a3a6100ae3ccbfb013bbbb2553c8ee1
treec4f4e1f1ecd6f208291937b7f0bc25718484f985
parent34dbb37e8479e3c2a86a50301704f10bc8011cfd
BUG/MINOR: proxy: also look for the closest option among cfg_opts3

proxy_find_best_option() scans cfg_opts[] and cfg_opts2[] for the option
which looks closest to a mistyped one. When cfg_opts3[] was introduced
in 3.2 with commit cc5a66212d ("MINOR: proxy: add proxy->options3"), it
was not added there, so such newly added options are not proposed as
candidates for mistakes (e.g. "assume-rfc6587-ntf" or "dont-parse-log").
Let's just fix this.

This may be backported to 3.2.
src/proxy.c