diff --git a/native/common/common.c b/native/common/common.c index 2cd959e2..0de3d52f 100644 --- a/native/common/common.c +++ b/native/common/common.c @@ -434,7 +434,7 @@ node_context *find_node_context_host(request_rec *r, const proxy_balancer *balan if (node == NULL) { continue; } - if (strlen(balancer->s->name) > BALANCER_PREFIX_LENGTH && + if (strlen(balancer->s->name) <= BALANCER_PREFIX_LENGTH || strcasecmp(&balancer->s->name[BALANCER_PREFIX_LENGTH], node->mess.balancer) != 0) { continue; }