From 15d6ae682921429129e986ab52bc37e51e113daf Mon Sep 17 00:00:00 2001 From: Francesco Date: Wed, 11 Mar 2026 16:32:49 +0100 Subject: [PATCH] fix(worker): return vhost --- src/core/worker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/worker.c b/src/core/worker.c index b8a0a67..fd279f5 100644 --- a/src/core/worker.c +++ b/src/core/worker.c @@ -31,7 +31,7 @@ static cws_vhost_s *get_vhost(cws_config_s *config, char *host) { for (unsigned i = 0; i < config->virtual_hosts_count; ++i) { cws_vhost_s *vh = config->virtual_hosts; if (!strcmp(vh[i].domain, host)) { - return vh; + return &vh[i]; } }