Revert "Resolve name to IP address when removing connected targets"
This reverts commit eef311ba69.
This commit is contained in:
1 parent
eef311ba69
commit
af3e1b8888
1 file changed
+1
-3
+1
-3
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user