fix comparison of InetAddress objects

code was comparing SocketAddress's to InetAddress, make consistent.