if syntax errors
parent
eae589f582
commit
f109a3ebc7
|
@ -262,7 +262,7 @@ fi
|
||||||
if [ "$TCPPORTS" ] || [ "$UDPPORTS" ]; then
|
if [ "$TCPPORTS" ] || [ "$UDPPORTS" ]; then
|
||||||
display_c YELLOW "Adding allowed port: " N
|
display_c YELLOW "Adding allowed port: " N
|
||||||
if [ "$TCPPORTS" ]; then
|
if [ "$TCPPORTS" ]; then
|
||||||
if [ $IPTABLES_MULTIPORT == "yes" ] && [ $NF_MULTIPORT_MAX_PORTS ]; then
|
if [ "$IPTABLES_MULTIPORT" == "yes" ] && [ "$NF_MULTIPORT_MAX_PORTS" ]; then
|
||||||
TCPPORTS=($TCPPORTS)
|
TCPPORTS=($TCPPORTS)
|
||||||
PORTS_COUNT=${#TCPPORTS[@]}
|
PORTS_COUNT=${#TCPPORTS[@]}
|
||||||
PORTS_COUNT_CURR=0
|
PORTS_COUNT_CURR=0
|
||||||
|
@ -277,7 +277,7 @@ if [ "$TCPPORTS" ] || [ "$UDPPORTS" ]; then
|
||||||
unset PORTS
|
unset PORTS
|
||||||
PORTS_COUNT_CURR=$i
|
PORTS_COUNT_CURR=$i
|
||||||
done
|
done
|
||||||
unset y PORTS PORTS_COUNT_CURR PORTS_COUNT
|
unset i PORTS PORTS_COUNT_CURR PORTS_COUNT
|
||||||
else
|
else
|
||||||
for i in $TCPPORTS; do
|
for i in $TCPPORTS; do
|
||||||
echo -en "${PURPLE}TCP${DEFAULT_COLOR}/${GREEN}$i "
|
echo -en "${PURPLE}TCP${DEFAULT_COLOR}/${GREEN}$i "
|
||||||
|
@ -565,7 +565,7 @@ if [ $IPV6 ]; then
|
||||||
if [ "$IPV6TCP" ] || [ "$IPV6UDP" ]; then
|
if [ "$IPV6TCP" ] || [ "$IPV6UDP" ]; then
|
||||||
display_c YELLOW "Adding allowed IPv6 port: " N
|
display_c YELLOW "Adding allowed IPv6 port: " N
|
||||||
if [ "$IPV6TCP" ]; then
|
if [ "$IPV6TCP" ]; then
|
||||||
if [ $IPTABLES_MULTIPORT == "yes" ] && [ $NF_MULTIPORT_MAX_PORTS ]; then
|
if [ "$IPTABLES_MULTIPORT" == "yes" ] && [ "$NF_MULTIPORT_MAX_PORTS" ]; then
|
||||||
IPV6TCP=($IPV6TCP)
|
IPV6TCP=($IPV6TCP)
|
||||||
PORTS_COUNT=${#IPV6TCP[@]}
|
PORTS_COUNT=${#IPV6TCP[@]}
|
||||||
PORTS_COUNT_CURR=0
|
PORTS_COUNT_CURR=0
|
||||||
|
@ -580,7 +580,7 @@ if [ $IPV6 ]; then
|
||||||
unset PORTS
|
unset PORTS
|
||||||
PORTS_COUNT_CURR=$i
|
PORTS_COUNT_CURR=$i
|
||||||
done
|
done
|
||||||
unset y PORTS PORTS_COUNT_CURR PORTS_COUNT
|
unset i PORTS PORTS_COUNT_CURR PORTS_COUNT
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
for i in $IPV6TCP; do
|
for i in $IPV6TCP; do
|
||||||
|
|
Loading…
Reference in New Issue