updated haproxy state
This commit is contained in:
parent
ebb0d84e9d
commit
b58d7494de
@ -91,7 +91,7 @@ static int get_country(lua_State *L) {
|
|||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
sprintf(country, "%.*s", entry_data->data_size, entry_data->utf8_string);
|
sprintf(country, "%.*s", entry_data->data_size, entry_data->utf8_string);
|
||||||
} else {
|
} else {
|
||||||
strcpy(country, "not found");
|
strcpy(country, "N/A");
|
||||||
}
|
}
|
||||||
|
|
||||||
lua_pushstring(L, country);
|
lua_pushstring(L, country);
|
||||||
|
@ -6,7 +6,7 @@ local compile = {}
|
|||||||
local lua_version = "5.3"
|
local lua_version = "5.3"
|
||||||
local user = "haproxy"
|
local user = "haproxy"
|
||||||
local group = "haproxy"
|
local group = "haproxy"
|
||||||
local libs = {"-ljansson", "-lmaxminddb"}
|
local libs = {"-ljansson", "-lmaxminddb", "-lcurl"}
|
||||||
|
|
||||||
function compile.check(module)
|
function compile.check(module)
|
||||||
local sourcepath = modpath.."/"..module..".c"
|
local sourcepath = modpath.."/"..module..".c"
|
||||||
|
Loading…
Reference in New Issue
Block a user