MINOR: cfgparse/proxy: also support spelling fixes on options
authorWilly Tarreau <w@1wt.eu>
Mon, 15 Mar 2021 10:11:55 +0000 (11:11 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 15 Mar 2021 10:14:57 +0000 (11:14 +0100)
commit31a3cea84fe7f1245604abfe0d286b5f2a69801e
tree854b37a79583dc016b1ceaa3841f02e70be585bc
parentb12bc646d5eb1af143837a05bb03341add25af4d
MINOR: cfgparse/proxy: also support spelling fixes on options

Some are not always easy to spot with "chk" vs "check" or hyphens at
some places and not at others. Now entering "option http-close" properly
suggests "httpclose" and "option tcp-chk" suggests "tcp-check". There's
no need to consider the proxy's capabilities, what matters is to figure
what related word the user tried to spell, and there are not that many
options anyway.
include/haproxy/proxy.h
src/cfgparse-listen.c
src/proxy.c