px = hlua_check_proxy(L, 1);
if (px == NULL) {
lua_pushnil(L);
- return 0;
+ return 1;
}
lua_pushstring(L, px->id);
px = hlua_check_proxy(L, 1);
if (px == NULL) {
lua_pushnil(L);
- return 0;
+ return 1;
}
snprintf(buffer, sizeof(buffer), "%d", px->uuid);
px = hlua_check_proxy(L, 1);
if (px == NULL) {
lua_pushnil(L);
- return 0;
+ return 1;
}
str = proxy_cap_str(px->cap);
px = hlua_check_proxy(L, 1);
if (px == NULL) {
lua_pushnil(L);
- return 0;
+ return 1;
}
if (px->cap & PR_CAP_BE)
px = hlua_check_proxy(L, 1);
if (px == NULL) {
lua_pushnil(L);
- return 0;
+ return 1;
}
str = proxy_mode_str(px->mode);
px = hlua_check_proxy(L, 1);
if (px == NULL) {
lua_pushnil(L);
- return 0;
+ return 1;
}
lua_pushinteger(L, px->srv_act);
px = hlua_check_proxy(L, 1);
if (px == NULL) {
lua_pushnil(L);
- return 0;
+ return 1;
}
lua_pushinteger(L, px->srv_bck);
px = hlua_check_proxy(L, 1);
if (px == NULL) {
lua_pushnil(L);
- return 0;
+ return 1;
}
if (!px->email_alert.mailers.m)