aboutsummaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorame <[email protected]>2025-09-03 01:59:02 -0500
committerame <[email protected]>2025-09-03 01:59:02 -0500
commita239a832f14ed1f7eab9b9ee75867bdc2ee2a5f9 (patch)
treeefd512825227828d98866a8028bb13ed886a9011 /src/net
parentaca474d31ede34347e776504b5a4228800d0e3a8 (diff)
non-global net paths
Diffstat (limited to 'src/net')
-rw-r--r--src/net/common.h4
1 files changed, 1 insertions, 3 deletions
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 {