From b58d7494de90e4641d6618e9cefc5e1b98b98fd7 Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Sat, 27 Jan 2024 10:41:30 +0100 Subject: [PATCH] updated haproxy state --- states/haproxy/mods/haproxy.c | 2 +- states/haproxy/scripts/compile.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"