mirror of
https://github.com/YunoHost-Apps/adguardhome_ynh.git
synced 2024-09-03 18:06:23 +02:00
small refactor
This commit is contained in:
parent
58a0d7594e
commit
e622a2193d
1 changed files with 1 additions and 2 deletions
|
@ -9,8 +9,7 @@
|
|||
#=================================================
|
||||
|
||||
is_public_ip(){
|
||||
local IP
|
||||
IP="$1"
|
||||
local IP="$1"
|
||||
if [[ "$IP" =~ ^10.*|^169.*|^172.*|^192.168.* ]] ; then
|
||||
# private ipv4, so false
|
||||
return 1
|
||||
|
|
Loading…
Add table
Reference in a new issue