diff --git a/autoban.mjs b/autoban.mjs index e8e63d6..36b9607 100644 --- a/autoban.mjs +++ b/autoban.mjs @@ -59,7 +59,7 @@ function check_ban_list() { if (age > max_ban_time) { ban_map.delete(entry.ip); console.log(new Date().toISOString(), 'UNBAN', entry.ip); - sudo([unban_script, network_interface, ip]); + sudo([unban_script, network_interface, entry.ip]); } } }