assume we need to remove the /CIDR from ipv6 addresses

This commit is contained in:
Tommy Huff 2016-10-19 08:28:49 -04:00
parent 9617a9eb68
commit 7455cac06c
2 changed files with 2 additions and 0 deletions

View file

@ -203,6 +203,7 @@ fi
if [[ -n ${IPv6_address} ]] ; then if [[ -n ${IPv6_address} ]] ; then
piholeIP=${IPv6_address} piholeIP=${IPv6_address}
piholeIP=$(echo "${piholeIP}" | cut -f1 -d"/")
else else
piholeIP=${IPv4_address} piholeIP=${IPv4_address}
piholeIP=$(echo "${piholeIP}" | cut -f1 -d"/") piholeIP=$(echo "${piholeIP}" | cut -f1 -d"/")

View file

@ -219,6 +219,7 @@ fi
if [[ -n ${IPv6_address} ]] ; then if [[ -n ${IPv6_address} ]] ; then
piholeIP=${IPv6_address} piholeIP=${IPv6_address}
piholeIP=$(echo "${piholeIP}" | cut -f1 -d"/")
else else
piholeIP=${IPv4_address} piholeIP=${IPv4_address}
piholeIP=$(echo "${piholeIP}" | cut -f1 -d"/") piholeIP=$(echo "${piholeIP}" | cut -f1 -d"/")