Add support for unifi devices outside internal network.

This commit is contained in:
2019-08-01 17:22:48 +02:00
parent 8e94cdcd3b
commit 14b72b2ad2
5 changed files with 78 additions and 11 deletions

View File

@ -1000,6 +1000,12 @@ local_unifi_controller_service=false
# -
unifi_ap_local_ips=""
# Note:
# in contrast to devices at local networks, devices hosted at extern network
# are only be seen, if the device is part of this array 'unifi_ap_extern_ip_arr'
#
unifi_ap_extern_ips=""
# - UniFi Controllers on local network (other than this machine)
# -

View File

@ -970,6 +970,12 @@ local_unifi_controller_service=false
# -
unifi_ap_local_ips=""
# Note:
# in contrast to devices at local networks, devices hosted at extern network
# are only be seen, if the device is part of this array 'unifi_ap_extern_ip_arr'
#
unifi_ap_extern_ips=""
# - UniFi Controllers on local network (other than this machine)
# -

View File

@ -374,6 +374,10 @@ declare -a unifi_ap_local_ip_arr
for _ip in $unifi_ap_local_ips ; do
unifi_ap_local_ip_arr+=("$_ip")
done
declare -a unifi_ap_extern_ip_arr
for _ip in $unifi_ap_extern_ips ; do
unifi_ap_extern_ip_arr+=("$_ip")
done
declare -a unifi_controller_gateway_ip_arr
for _ip in $unifi_controller_gateway_ips ; do
unifi_controller_gateway_ip_arr+=("$_ip")