From af3e1b88882bac022556ebd5bf1f950034bb037f Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Fri, 10 Oct 2014 11:57:34 +0100 Subject: [PATCH] Revert "Resolve name to IP address when removing connected targets" This reverts commit eef311ba6980183e204eda0b85b40d350aa97dd2. --- connection_maker.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/connection_maker.go b/connection_maker.go index b9a6b5c7..12c5474a 100644 --- a/connection_maker.go +++ b/connection_maker.go @@ -133,9 +133,7 @@ func (cm *ConnectionMaker) checkStateAndAttemptConnections() time.Duration { now := time.Now() // make sure we catch items just added after := MaxDuration for address, target := range cm.targets { - tcpAddr, err := net.ResolveTCPAddr("tcp4", address) - ipAddr := tcpAddr.String() - if err == nil && our_connected_targets[ipAddr] { + if our_connected_targets[address] { delete(cm.targets, address) continue }