summaryrefslogtreecommitdiff
path: root/proxy_config.c
diff options
context:
space:
mode:
Diffstat (limited to 'proxy_config.c')
-rw-r--r--proxy_config.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/proxy_config.c b/proxy_config.c
index 98af5c2..b3ec6c1 100644
--- a/proxy_config.c
+++ b/proxy_config.c
@@ -347,10 +347,10 @@ static void _copy_config_table(lua_State *from, lua_State *to, LIBEVENT_THREAD *
lua_pushlstring(to, lua_tostring(from, -2), lua_rawlen(from, -2));
break;
case LUA_TNUMBER:
- if (lua_isinteger(from, -1)) {
- lua_pushinteger(to, lua_tointeger(from, -1));
+ if (lua_isinteger(from, -2)) {
+ lua_pushinteger(to, lua_tointeger(from, -2));
} else {
- lua_pushnumber(to, lua_tonumber(from, -1));
+ lua_pushnumber(to, lua_tonumber(from, -2));
}
break;
default: