diff --git a/src/cfgparse-listen.c b/src/cfgparse-listen.c index cf3cb56b9..656031b0a 100644 --- a/src/cfgparse-listen.c +++ b/src/cfgparse-listen.c @@ -2009,10 +2009,12 @@ stats_error_parsing: /* "[no] option http-use-htx" is deprecated */ if (!strcmp(cfg_opts2[optnum].name, "http-use-htx")) { - ha_warning("parsing [%s:%d]: option '%s' is deprecated and ignored." - " The HTX mode is now the only supported mode.\n", - file, linenum, cfg_opts2[optnum].name); - err_code |= ERR_WARN; + if (kwm ==KWM_NO) { + ha_warning("parsing [%s:%d]: option '%s' is deprecated and ignored." + " The HTX mode is now the only supported mode.\n", + file, linenum, cfg_opts2[optnum].name); + err_code |= ERR_WARN; + } goto out; }