when we set check port flag, we need to set a flag on server. this is missing since the origin of the feature: commit 5094656a67fa1b56f30cd2316adb675ca9d2a79a ("MINOR: cli: change a server health check port through the stats socket"). So it can potentially be backport up to v1.8.
Signed-off-by: William Dauchy <wdau...@gmail.com> --- src/server.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/server.c b/src/server.c index 99b7e9181..ded3d47ff 100644 --- a/src/server.c +++ b/src/server.c @@ -4405,6 +4405,7 @@ static int cli_parse_set_server(char **args, char *payload, struct appctx *appct goto out_unlock; } sv->check.port = i; + sv->flags |= SRV_F_CHECKPORT; cli_msg(appctx, LOG_NOTICE, "health check port updated.\n"); } else if (strcmp(args[3], "addr") == 0) { -- 2.29.2