mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-08 22:31:04 +00:00
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:
parent
7817d092cb
commit
a17d953334
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user