Working on ipv6 + ipv4

This commit is contained in:
Tommy Huff 2016-10-19 15:10:33 -04:00
parent 3d7d7b80f0
commit acfd56a7b9
3 changed files with 13 additions and 4 deletions

View file

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

View file

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