From a6ef270ed5d1224f72fb5f08e687b6aec572a2b5 Mon Sep 17 00:00:00 2001 From: ame Date: Sat, 14 Jun 2025 00:11:36 -0500 Subject: fix config using strings --- src/net.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/net.h') diff --git a/src/net.h b/src/net.h index 8c36057..f7e5d64 100644 --- a/src/net.h +++ b/src/net.h @@ -53,8 +53,9 @@ static const luaL_Reg net_function_list [] = { }; extern char* _mimetypes; +extern uint64_t _mimetypes_len; static struct config net_config[] = { - {.name = "mimetypes", .type = c_string, .value = {.c_string = &_mimetypes}}, + {.name = "mimetypes", .type = c_string, .value = {.c_string = &_mimetypes, .len = &_mimetypes_len}}, {.type = c_none} }; -- cgit v1.2.3