From 2004865efe1e8da24f7182b233246298ed5cf56e Mon Sep 17 00:00:00 2001 From: dormando Date: Wed, 17 Aug 2022 10:49:49 -0700 Subject: proxy: allow booleans in pool structure the return value passed from mcp_config_pools() is adjusted and copied into the worker VM's so the types are limited. This adds the boolean type to allowable list. --- proxy_config.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'proxy_config.c') diff --git a/proxy_config.c b/proxy_config.c index caddbff..3de1aac 100644 --- a/proxy_config.c +++ b/proxy_config.c @@ -279,6 +279,9 @@ static void _copy_config_table(lua_State *from, lua_State *to) { case LUA_TSTRING: lua_pushlstring(to, lua_tostring(from, -1), lua_rawlen(from, -1)); break; + case LUA_TBOOLEAN: + lua_pushboolean(to, lua_toboolean(from, -1)); + break; case LUA_TTABLE: // TODO (v2): copy the metatable first? // TODO (v2): size narr/nrec from old table and use createtable to -- cgit v1.2.1