Firewall name

This commit is contained in:
Bob Mottram 2016-10-22 17:29:24 +01:00
parent 91090df05f
commit 010757a1d2
2 changed files with 2 additions and 2 deletions

View File

@ -1516,7 +1516,7 @@ function show_firewall {
while read line; do
firewall_name=$(echo "$line" | awk -F '=' '{print $1}')
firewall_port=$(echo "$line" | awk -F '=' '{print $2}')
echo -n -e "$(pad_string \"${firewall_name}\")"
echo -n -e "$(pad_string ${firewall_name})"
echo "${firewall_port}"
done < $FIREWALL_CONFIG
any_key

View File

@ -305,7 +305,7 @@ function mesh_firewall {
}
function firewall_add {
firewall_name="$1"
firewall_name=$(echo "$1" | sed "s| |-|g")
firewall_port=$2
firewall_protocol="$3"