From 71b1f8ce1d1410144afe2175a99d3b10c7566c7a Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Sun, 15 Dec 2024 08:55:46 -0700 Subject: [PATCH] simply print rdr file when listing ports --- usr/local/share/bastille/list.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/share/bastille/list.sh b/usr/local/share/bastille/list.sh index 3f74d29f..21b7db01 100644 --- a/usr/local/share/bastille/list.sh +++ b/usr/local/share/bastille/list.sh @@ -207,7 +207,7 @@ list_ports(){ JAIL_LIST=$(ls "${bastille_jailsdir}" | sed "s/\n//g") for _JAIL in ${JAIL_LIST}; do if [ -f "${bastille_jailsdir}/${_JAIL}/rdr.conf" ]; then - _PORTS="$(cat "${bastille_jailsdir}"/"${_JAIL}"/rdr.conf | awk '{print $1" "$2":"$5"/"$3":"$6" -> "$4":"$7}')" + _PORTS="$(cat "${bastille_jailsdir}"/"${_JAIL}"/rdr.conf)" info "[${_JAIL}]:" echo "${_PORTS}" fi