mirror of
https://github.com/YunoHost-Apps/adguardhome_ynh.git
synced 2024-09-03 18:06:23 +02:00
typo
This commit is contained in:
parent
ce7daa396a
commit
58a0d7594e
1 changed files with 6 additions and 6 deletions
|
@ -12,14 +12,14 @@ is_public_ip(){
|
||||||
local IP
|
local IP
|
||||||
IP="$1"
|
IP="$1"
|
||||||
if [[ "$IP" =~ ^10.*|^169.*|^172.*|^192.168.* ]] ; then
|
if [[ "$IP" =~ ^10.*|^169.*|^172.*|^192.168.* ]] ; then
|
||||||
# private ipv4
|
# private ipv4, so false
|
||||||
returns false
|
return 1
|
||||||
elif [[ "$IP" =~ ^fc*|^fd*|^fe80:* ]] ; then
|
elif [[ "$IP" =~ ^fc*|^fd*|^fe80:* ]] ; then
|
||||||
# private ipv6
|
# private ipv6, so false
|
||||||
returns false
|
return 1
|
||||||
else
|
else
|
||||||
# public ip
|
# public ip, so true
|
||||||
returns true
|
return 0
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue