rdr: Fix wrong variable on reset command

This commit is contained in:
tschettervictor
2025-02-24 07:06:25 -07:00
committed by GitHub
parent 9eb778d022
commit c28fd33573

View File

@@ -321,7 +321,7 @@ while [ "$#" -gt 0 ]; do
check_jail_validity
echo "${TARGET} redirects:"
pfctl -a "rdr/${TARGET}" -Fn
if rm -f "${bastille_jailsdir}/${_jail}/rdr.conf"; then
if rm -f "${bastille_jailsdir}/${TARGET}/rdr.conf"; then
info "[${TARGET}]: rdr.conf removed"
fi
fi