mirror of
https://github.com/YunoHost-Apps/adguardhome_ynh.git
synced 2024-09-03 18:06:23 +02:00
fix the "there's no valid IP at all for this configuration" bug where the whole route where echoed
This commit is contained in:
parent
1862a22c67
commit
34eee2028a
1 changed files with 3 additions and 2 deletions
|
@ -60,6 +60,7 @@ process_ips(){
|
|||
# used to process the IPs to put in the AGH's config file
|
||||
|
||||
local ips="$1"
|
||||
local processed_ips
|
||||
|
||||
for i in $(seq "$(echo "$ips" | wc -w)" -1 1); do
|
||||
ip=$(echo "$ips" | awk "{print \$$i}")
|
||||
|
@ -69,13 +70,13 @@ process_ips(){
|
|||
if is_public_ip "$ip" && [ "$open_port_53" == "false" ] ; then
|
||||
break
|
||||
else
|
||||
ips="$ip"
|
||||
processed_ips="$ip"
|
||||
break
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
echo "$ips"
|
||||
echo "$processed_ips"
|
||||
}
|
||||
|
||||
update_agh_config(){
|
||||
|
|
Loading…
Add table
Reference in a new issue