diff --git a/states/haproxy/mods/haproxy.c b/states/haproxy/mods/haproxy.c index 90178d7..22fa06e 100644 --- a/states/haproxy/mods/haproxy.c +++ b/states/haproxy/mods/haproxy.c @@ -91,7 +91,7 @@ static int get_country(lua_State *L) { if (status == 0) { sprintf(country, "%.*s", entry_data->data_size, entry_data->utf8_string); } else { - strcpy(country, "not found"); + strcpy(country, "N/A"); } lua_pushstring(L, country); diff --git a/states/haproxy/scripts/compile.lua b/states/haproxy/scripts/compile.lua index f8c697f..87d63b4 100644 --- a/states/haproxy/scripts/compile.lua +++ b/states/haproxy/scripts/compile.lua @@ -6,7 +6,7 @@ local compile = {} local lua_version = "5.3" local user = "haproxy" local group = "haproxy" -local libs = {"-ljansson", "-lmaxminddb"} +local libs = {"-ljansson", "-lmaxminddb", "-lcurl"} function compile.check(module) local sourcepath = modpath.."/"..module..".c"