fix comparison of InetAddress objects