Fix error concerning unifi controller.

This commit is contained in:
Christoph 2019-08-01 18:06:46 +02:00
parent 14b72b2ad2
commit 626e167854
2 changed files with 2 additions and 4 deletions

View File

@ -3433,8 +3433,7 @@ fi
echononl "\t\tUbiquiti Unifi Controller Gateway - STUN to Unifi APs" echononl "\t\tUbiquiti Unifi Controller Gateway - STUN to Unifi APs"
if $local_unifi_controller_service \ if $local_unifi_controller_service \
&& [[ ${#unifi_ap_local_ip_arr[@]} -gt 0 ]] \ && ( [[ ${#unifi_ap_local_ip_arr[@]} -gt 0 ]] || [[ ${#unifi_ap_extern_ip_arr[@]} -gt 0 ]] ) ; then
&& [[ ${#unifi_ap_extern_ip_arr[@]} -gt 0 ]] ; then
if [[ ${#unifi_ap_local_ip_arr[@]} -gt 0 ]] ; then if [[ ${#unifi_ap_local_ip_arr[@]} -gt 0 ]] ; then

View File

@ -4141,8 +4141,7 @@ fi
echononl "\t\tUbiquiti Unifi Controller Gateway - STUN to Unifi APs" echononl "\t\tUbiquiti Unifi Controller Gateway - STUN to Unifi APs"
if $local_unifi_controller_service \ if $local_unifi_controller_service \
&& [[ ${#unifi_ap_local_ip_arr[@]} -gt 0 ]] \ && ( [[ ${#unifi_ap_local_ip_arr[@]} -gt 0 ]] || [[ ${#unifi_ap_extern_ip_arr[@]} -gt 0 ]] ) ; then
&& [[ ${#unifi_ap_extern_ip_arr[@]} -gt 0 ]] ; then
if [[ ${#unifi_ap_local_ip_arr[@]} -gt 0 ]] ; then if [[ ${#unifi_ap_local_ip_arr[@]} -gt 0 ]] ; then