Correcting IPv6 bug

This commit is contained in:
Alarig Le Lay 2020-04-25 00:07:05 +02:00
parent 0d9ba4deef
commit 6b0cc45074
Signed by: alarig
GPG key ID: 7AFE62C6DF8BCDEC

View file

@ -119,7 +119,7 @@ IFACE="tap${VM_ID}i0"
IP4_NEIGH="$(ip -4 neigh show dev ${IFACE})" IP4_NEIGH="$(ip -4 neigh show dev ${IFACE})"
IP6_NEIGH="$(ip -6 neigh show dev ${IFACE})" IP6_NEIGH="$(ip -6 neigh show dev ${IFACE})"
IP4_ROUTE="$(ip -4 route show dev ${IFACE})" IP4_ROUTE="$(ip -4 route show dev ${IFACE})"
IP6_ROUTE="$(ip -6 route show dev ${IFACE})" IP6_ROUTE="$(ip -6 route show dev ${IFACE} | grep -vF 'fe80::/64')"
if [ "${IP4_NEIGH}" ] && [ "${IP6_NEIGH}" ] && [ "${IP4_ROUTE}" ] && [ "${IP6_ROUTE}" ]; then if [ "${IP4_NEIGH}" ] && [ "${IP6_NEIGH}" ] && [ "${IP4_ROUTE}" ] && [ "${IP6_ROUTE}" ]; then
write_log INFO 'Nothing to do' write_log INFO 'Nothing to do'