diff --git a/src/tcpcheck.c b/src/tcpcheck.c index 4e594a9f7..9610760d7 100644 --- a/src/tcpcheck.c +++ b/src/tcpcheck.c @@ -3637,7 +3637,7 @@ static int check_proxy_tcpcheck(struct proxy *px) if (next && next->action == TCPCHK_ACT_CONNECT) { LIST_DELETE(&chk->list); LIST_INSERT(&next->list, &chk->list); - chk->index = next->index; + chk->index = next->index + 1; } } @@ -3658,7 +3658,7 @@ static int check_proxy_tcpcheck(struct proxy *px) goto out; } LIST_APPEND(px->tcpcheck_rules.list, &next->list); - next->index = chk->index; + next->index = chk->index + 1; } }