From 626e1678545225972b6e78f118dfdb3571a9e4c1 Mon Sep 17 00:00:00 2001 From: Christoph Date: Thu, 1 Aug 2019 18:06:46 +0200 Subject: [PATCH] Fix error concerning unifi controller. --- ip6t-firewall-gateway | 3 +-- ipt-firewall-gateway | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/ip6t-firewall-gateway b/ip6t-firewall-gateway index e055e08..cd1a369 100755 --- a/ip6t-firewall-gateway +++ b/ip6t-firewall-gateway @@ -3433,8 +3433,7 @@ fi echononl "\t\tUbiquiti Unifi Controller Gateway - STUN to Unifi APs" if $local_unifi_controller_service \ - && [[ ${#unifi_ap_local_ip_arr[@]} -gt 0 ]] \ - && [[ ${#unifi_ap_extern_ip_arr[@]} -gt 0 ]] ; then + && ( [[ ${#unifi_ap_local_ip_arr[@]} -gt 0 ]] || [[ ${#unifi_ap_extern_ip_arr[@]} -gt 0 ]] ) ; then if [[ ${#unifi_ap_local_ip_arr[@]} -gt 0 ]] ; then diff --git a/ipt-firewall-gateway b/ipt-firewall-gateway index b94a19e..c8e1b2c 100755 --- a/ipt-firewall-gateway +++ b/ipt-firewall-gateway @@ -4141,8 +4141,7 @@ fi echononl "\t\tUbiquiti Unifi Controller Gateway - STUN to Unifi APs" if $local_unifi_controller_service \ - && [[ ${#unifi_ap_local_ip_arr[@]} -gt 0 ]] \ - && [[ ${#unifi_ap_extern_ip_arr[@]} -gt 0 ]] ; then + && ( [[ ${#unifi_ap_local_ip_arr[@]} -gt 0 ]] || [[ ${#unifi_ap_extern_ip_arr[@]} -gt 0 ]] ) ; then if [[ ${#unifi_ap_local_ip_arr[@]} -gt 0 ]] ; then