1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/adguardhome_ynh.git synced 2024-09-03 18:06:23 +02:00

use no-op command

This commit is contained in:
OniriCorpe 2023-12-31 01:27:17 +01:00
parent 1c198b3f42
commit 29c6b0a04b

View file

@ -79,8 +79,8 @@ process_ips(){
if [ "$(ynh_validate_ip4 --ip_address="$ip")" ] || [ "$(ynh_validate_ip6 --ip_address="$ip")" ] ; then if [ "$(ynh_validate_ip4 --ip_address="$ip")" ] || [ "$(ynh_validate_ip6 --ip_address="$ip")" ] ; then
# don't process if the IP is public and the port 53 closed # don't process if the IP is public and the port 53 closed
if [ "$(is_public_ip "$ip")" == 0 ] && [ "$open_port_53" == "false" ] ; then if [ "$(is_public_ip "$ip")" == 0 ] && [ "$open_port_53" == "false" ] ; then
# don't add this IP # don't add this IP (do nothing)
processed_ips+="" :
else else
processed_ips+="$ip " processed_ips+="$ip "
fi fi