mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-24 08:10:14 +00:00
assume we need to remove the /CIDR from ipv6 addresses
This commit is contained in:
parent
9617a9eb68
commit
7455cac06c
2 changed files with 2 additions and 0 deletions
|
@ -203,6 +203,7 @@ fi
|
|||
|
||||
if [[ -n ${IPv6_address} ]] ; then
|
||||
piholeIP=${IPv6_address}
|
||||
piholeIP=$(echo "${piholeIP}" | cut -f1 -d"/")
|
||||
else
|
||||
piholeIP=${IPv4_address}
|
||||
piholeIP=$(echo "${piholeIP}" | cut -f1 -d"/")
|
||||
|
|
|
@ -219,6 +219,7 @@ fi
|
|||
|
||||
if [[ -n ${IPv6_address} ]] ; then
|
||||
piholeIP=${IPv6_address}
|
||||
piholeIP=$(echo "${piholeIP}" | cut -f1 -d"/")
|
||||
else
|
||||
piholeIP=${IPv4_address}
|
||||
piholeIP=$(echo "${piholeIP}" | cut -f1 -d"/")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue