conf/post_decalrations.conf: fix some logical errors.
This commit is contained in:
+25
-36
@@ -878,11 +878,10 @@ fi
|
|||||||
# ---
|
# ---
|
||||||
if $allow_pgpserver_request_out ; then
|
if $allow_pgpserver_request_out ; then
|
||||||
|
|
||||||
if containsElement "${standard_pgp_keyserver_port}" "${out_tcp_port_arr[@]}" ; then
|
if ! containsElement "${standard_pgp_keyserver_port}" "${out_tcp_port_arr[@]}" ; then
|
||||||
continue
|
out_tcp_port_arr+=("$standard_pgp_keyserver_port")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
out_tcp_port_arr+=("$standard_pgp_keyserver_port")
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -892,11 +891,10 @@ fi
|
|||||||
# ---
|
# ---
|
||||||
if $allow_telnet_request_out ; then
|
if $allow_telnet_request_out ; then
|
||||||
|
|
||||||
if containsElement "${standard_telnet_port}" "${out_tcp_port_arr[@]}" ; then
|
if ! containsElement "${standard_telnet_port}" "${out_tcp_port_arr[@]}" ; then
|
||||||
continue
|
out_tcp_port_arr+=("$standard_telnet_port")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
out_tcp_port_arr+=("$standard_telnet_port")
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -906,11 +904,10 @@ fi
|
|||||||
# ---
|
# ---
|
||||||
if $allow_whois_request_out ; then
|
if $allow_whois_request_out ; then
|
||||||
|
|
||||||
if containsElement "${standard_whois_port}" "${out_tcp_port_arr[@]}" ; then
|
if ! containsElement "${standard_whois_port}" "${out_tcp_port_arr[@]}" ; then
|
||||||
continue
|
out_tcp_port_arr+=("$standard_whois_port")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
out_tcp_port_arr+=("$standard_whois_port")
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -920,11 +917,10 @@ fi
|
|||||||
# ---
|
# ---
|
||||||
if $allow_cpan_wait_request_out ; then
|
if $allow_cpan_wait_request_out ; then
|
||||||
|
|
||||||
if containsElement "${standard_cpan_wait_port}" "${out_tcp_port_arr[@]}" ; then
|
if ! containsElement "${standard_cpan_wait_port}" "${out_tcp_port_arr[@]}" ; then
|
||||||
continue
|
out_tcp_port_arr+=("$standard_cpan_wait_port")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
out_tcp_port_arr+=("$standard_cpan_wait_port")
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -934,11 +930,10 @@ fi
|
|||||||
# ---
|
# ---
|
||||||
if $allow_hbci_request_out ; then
|
if $allow_hbci_request_out ; then
|
||||||
|
|
||||||
if containsElement "${standard_hbci_port}" "${out_tcp_port_arr[@]}" ; then
|
if ! containsElement "${standard_hbci_port}" "${out_tcp_port_arr[@]}" ; then
|
||||||
continue
|
out_tcp_port_arr+=("$standard_hbci_port")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
out_tcp_port_arr+=("$standard_hbci_port")
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -948,11 +943,10 @@ fi
|
|||||||
# ---
|
# ---
|
||||||
if $allow_jabber_request_out ; then
|
if $allow_jabber_request_out ; then
|
||||||
|
|
||||||
if containsElement "${standard_jabber_port}" "${out_tcp_port_arr[@]}" ; then
|
if ! containsElement "${standard_jabber_port}" "${out_tcp_port_arr[@]}" ; then
|
||||||
continue
|
out_tcp_port_arr+=("$standard_jabber_port")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
out_tcp_port_arr+=("$standard_jabber_port")
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -962,11 +956,10 @@ fi
|
|||||||
# ---
|
# ---
|
||||||
if $allow_silc_request_out ; then
|
if $allow_silc_request_out ; then
|
||||||
|
|
||||||
if containsElement "${standard_silc_port}" "${out_tcp_port_arr[@]}" ; then
|
if ! containsElement "${standard_silc_port}" "${out_tcp_port_arr[@]}" ; then
|
||||||
continue
|
out_tcp_port_arr+=("$standard_silc_port")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
out_tcp_port_arr+=("$standard_silc_port")
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -976,11 +969,10 @@ fi
|
|||||||
# ---
|
# ---
|
||||||
if $allow_irc_request_out ; then
|
if $allow_irc_request_out ; then
|
||||||
|
|
||||||
if containsElement "${standard_irc_port}" "${out_tcp_port_arr[@]}" ; then
|
if ! containsElement "${standard_irc_port}" "${out_tcp_port_arr[@]}" ; then
|
||||||
continue
|
out_tcp_port_arr+=("$standard_irc_port")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
out_tcp_port_arr+=("$standard_irc_port")
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -990,11 +982,10 @@ fi
|
|||||||
# ---
|
# ---
|
||||||
if $allow_mysql_request_out ; then
|
if $allow_mysql_request_out ; then
|
||||||
|
|
||||||
if containsElement "${standard_mysql_port}" "${out_tcp_port_arr[@]}" ; then
|
if ! containsElement "${standard_mysql_port}" "${out_tcp_port_arr[@]}" ; then
|
||||||
continue
|
out_tcp_port_arr+=("$standard_mysql_port")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
out_tcp_port_arr+=("$standard_mysql_port")
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -1024,11 +1015,10 @@ fi
|
|||||||
# ---
|
# ---
|
||||||
if $allow_remote_console_request_out ; then
|
if $allow_remote_console_request_out ; then
|
||||||
|
|
||||||
if containsElement "${standard_remote_console_port}" "${out_tcp_port_arr[@]}" ; then
|
if ! containsElement "${standard_remote_console_port}" "${out_tcp_port_arr[@]}" ; then
|
||||||
continue
|
out_tcp_port_arr+=("$standard_remote_console_port")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
out_tcp_port_arr+=("$standard_remote_console_port")
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -1038,11 +1028,10 @@ fi
|
|||||||
# ---
|
# ---
|
||||||
if $allow_speedtest ; then
|
if $allow_speedtest ; then
|
||||||
|
|
||||||
if containsElement "${standard_speedtest_port}" "${out_tcp_port_arr[@]}" ; then
|
if ! containsElement "${standard_speedtest_port}" "${out_tcp_port_arr[@]}" ; then
|
||||||
continue
|
out_tcp_port_arr+=("$standard_speedtest_port")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
out_tcp_port_arr+=("$standard_speedtest_port")
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -1107,7 +1096,7 @@ declare -a standard_turn_service_tcp_port_arr=()
|
|||||||
declare -a standard_turn_service_udp_port_arr=()
|
declare -a standard_turn_service_udp_port_arr=()
|
||||||
CUR_IFS="$IFS"
|
CUR_IFS="$IFS"
|
||||||
IFS=',' ; for _port in $standard_turn_service_ports ; do
|
IFS=',' ; for _port in $standard_turn_service_ports ; do
|
||||||
if ! containsElement "${_port}" "${out_tcp_port_arr[@]}" ; then
|
if containsElement "${_port}" "${out_tcp_port_arr[@]}" ; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -1119,7 +1108,7 @@ IFS=',' ; for _port in $standard_turn_service_ports ; do
|
|||||||
|
|
||||||
done
|
done
|
||||||
IFS=',' ; for _port in $standard_turn_service_ports ; do
|
IFS=',' ; for _port in $standard_turn_service_ports ; do
|
||||||
if ! containsElement "${_port}" "${out_udp_port_arr[@]}" ; then
|
if containsElement "${_port}" "${out_udp_port_arr[@]}" ; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -1132,7 +1121,7 @@ IFS=',' ; for _port in $standard_turn_service_ports ; do
|
|||||||
done
|
done
|
||||||
IFS=',' ; for _port in $standard_turn_service_udp_ports ; do
|
IFS=',' ; for _port in $standard_turn_service_udp_ports ; do
|
||||||
|
|
||||||
if ! containsElement "${_port}" "${out_udp_port_arr[@]}" ; then
|
if containsElement "${_port}" "${out_udp_port_arr[@]}" ; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user