fix comparisons of InetAddresses