mirror of
https://github.com/YunoHost-Apps/adguardhome_ynh.git
synced 2024-09-03 18:06:23 +02:00
idk sigh
This commit is contained in:
parent
a4f840ff07
commit
fa246d0b36
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ process_ips(){
|
|||
# for each IP
|
||||
for ip in $ips; do
|
||||
# check if the so-called IP really is one
|
||||
if [[ "$(ynh_validate_ip4 --ip_address="$ip")" == 0 || "$(ynh_validate_ip6 --ip_address="$ip")" == 0 ]]; then
|
||||
if [[ $(ynh_validate_ip4 --ip_address="$ip") == 0 || $(ynh_validate_ip6 --ip_address="$ip") == 0 ]]; then
|
||||
# don't process if the IP is public and the port 53 closed
|
||||
if [ "$(is_public_ip "$ip")" == 0 ] && [ "$open_port_53" == "false" ]; then
|
||||
# don't add this IP (do nothing)
|
||||
|
|
Loading…
Add table
Reference in a new issue