From a239a832f14ed1f7eab9b9ee75867bdc2ee2a5f9 Mon Sep 17 00:00:00 2001 From: ame Date: Wed, 3 Sep 2025 01:59:02 -0500 Subject: non-global net paths --- src/net/common.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/net/common.h') diff --git a/src/net/common.h b/src/net/common.h index fbafb58..dfac2e5 100644 --- a/src/net/common.h +++ b/src/net/common.h @@ -25,9 +25,6 @@ #define HTTP_BUFFER_SIZE 4098 #define max_content_length 200000 -static int ports[65535] = { 0 }; -static parray_t* paths = NULL; - enum file_status { _ignore, BARRIER_READ, FILE_HEADER, FILE_BODY, NORMAL }; @@ -43,6 +40,7 @@ typedef struct { int port; lua_State* L; struct sockaddr_in cli; + parray_t* paths; } thread_arg_struct; struct lchar { -- cgit v1.2.3