BUG/MINOR: cfgparse: use the GLOBAL not LISTEN keywords list for spell checking
authorWilly Tarreau <w@1wt.eu>
Mon, 15 Mar 2021 08:12:41 +0000 (09:12 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 15 Mar 2021 08:15:18 +0000 (09:15 +0100)
commit101df31503e7bef59cd6096cd9eb2d708de7471b
tree01913078f9f62fc6424b5c7936473a8e18b2ac6a
parent9c18747823870729fa1dc9c3a77fafe1bc2bfb01
BUG/MINOR: cfgparse: use the GLOBAL not LISTEN keywords list for spell checking

In commit a0e8eb8ca ("MINOR: cfgparse: suggest correct spelling for
unknown words in global section") we got the ability to locate a better
matching word in case of error. But it mistakenly used the CFG_LISTEN
class of words instead of CFG_GLOBAL, resulting in proposing unsuitable
matches in addition to the long hard-coded list. Now, "tune.dh-param"
correctly proposes "tune.ssl.default-dh-param".

No backport is needed.
src/cfgparse-global.c