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()
|
conn.Close()
|
||||||
}
|
}
|
||||||
}(deviceID, prio)
|
}(deviceID, prio)
|
||||||
|
return conn, ok
|
||||||
} else {
|
} else {
|
||||||
// Failed to connect, report that fact.
|
// Failed to connect, report that fact.
|
||||||
l.Debugln("failed to connect to", deviceID, prio)
|
l.Debugln("failed to connect to", deviceID, prio)
|
||||||
}
|
}
|
||||||
|
|
||||||
return conn, ok
|
|
||||||
}
|
}
|
||||||
return internalConn{}, false
|
return internalConn{}, false
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user