mirror of
https://github.com/YunoHost-Apps/adguardhome_ynh.git
synced 2024-09-03 18:06:23 +02:00
add comment to is_public_ip()
This commit is contained in:
parent
e622a2193d
commit
32d9aec887
1 changed files with 3 additions and 0 deletions
|
@ -9,7 +9,10 @@
|
|||
#=================================================
|
||||
|
||||
is_public_ip(){
|
||||
# used to discriminate publics IPs over private IPs
|
||||
|
||||
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