lib/connections: Actually make connection attempts for lower priority addresses as well

Skip-check: authors

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4535
This commit is contained in:
xjtdy888 2017-11-21 14:58:18 +00:00 committed by Jakob Borg
parent 7817d092cb
commit a17d953334

View File

@ -756,12 +756,11 @@ func dialParallel(deviceID protocol.DeviceID, dialTargets []dialTarget) (interna
conn.Close()
}
}(deviceID, prio)
return conn, ok
} else {
// Failed to connect, report that fact.
l.Debugln("failed to connect to", deviceID, prio)
}
return conn, ok
}
return internalConn{}, false
}