minor bug fix for IPv6
formerly the if clause never return true