diff --git a/src/log.c b/src/log.c index f9a4e26b26..e12a43b7f2 100644 --- a/src/log.c +++ b/src/log.c @@ -915,6 +915,13 @@ static int _postcheck_log_backend_compat(struct proxy *be) free_stick_rules(&be->storersp_rules); free_stick_rules(&be->sticking_rules); } + if (isttest(be->server_id_hdr_name)) { + ha_warning("Cannot set \"server_id_hdr_name\" with 'mode log' in %s '%s'. It will be ignored.\n", + proxy_type_str(be), be->id); + + err_code |= ERR_WARN; + istfree(&be->server_id_hdr_name); + } return err_code; }