From 53fdbac9da06a0dfb3f2821f7c7384001eea4f68 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 12 Mar 2025 16:04:24 +0000 Subject: bugfix: use TCPLOCALPORT instead of Host: port to determine docroot Signed-off-by: Laurent Bercot --- src/tipideed/tipideed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tipideed') diff --git a/src/tipideed/tipideed.c b/src/tipideed/tipideed.c index 2d3c687..a5f9fcd 100644 --- a/src/tipideed/tipideed.c +++ b/src/tipideed/tipideed.c @@ -524,7 +524,7 @@ int main (int argc, char const *const *argv, char const *const *envp) if (rql.uri.host[hostlen - 1] == '.') hostlen-- ; memcpy(docroot, rql.uri.host, hostlen) ; docroot[hostlen] = ':' ; - docroot[hostlen + 1 + uint16_fmt(docroot + hostlen + 1, rql.uri.port)] = 0 ; + docroot[hostlen + 1 + uint16_fmt(docroot + hostlen + 1, g.defaultport)] = 0 ; /* don't allow clients to spoof the port */ /* All good. Read the body if any */ -- cgit v1.3.1