Changed selectPeer() to use tuple for unreachableHosts.