mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-17 12:59:13 +02:00
chore(qbittorrent): simplify openvpn remote host parsing
Agent-Logs-Url: https://github.com/alexbelgium/hassio-addons/sessions/a71578b6-156a-4604-a66d-695af500d883 Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
fcacdadf39
commit
c8e220d493
@@ -225,7 +225,7 @@ _openvpn_collect_endpoint_ips() {
|
||||
local -a remote_hosts=()
|
||||
local -a resolved_ips=()
|
||||
|
||||
mapfile -t remote_hosts < <(awk '/^[[:space:]]*remote[[:space:]]+/ {print $2}' "${config["ConfigFile"]}" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//' | sort -u)
|
||||
mapfile -t remote_hosts < <(awk '/^[[:space:]]*remote[[:space:]]+/ {print $2}' "${config["ConfigFile"]}" | sort -u)
|
||||
for remote_host in "${remote_hosts[@]}"; do
|
||||
[ -z "${remote_host}" ] && continue
|
||||
result=0
|
||||
|
||||
Reference in New Issue
Block a user