cloudflared-mirror/edgediscovery
Sudarsan Reddy b8b35d99fa TUN-7002: Randomise first region selection
We previously always preferred region2 as the first region to connect
to if both the regions cloudflared connects to have the same number of
availabe addresses. This change randomises that choice. The first
connection, conn index: 0, can now either connect to region 1 or region
2.

More importantly, conn 0 and 2 and 1 and 3 need not belong to the same
region.
2022-12-07 17:46:15 +00:00
..
allregions TUN-7002: Randomise first region selection 2022-12-07 17:46:15 +00:00
dial.go TUN-3462: Refactor cloudflared to separate origin from connection 2020-11-11 15:11:42 +00:00
edgediscovery.go TUN-6388: Fix first tunnel connection not retrying 2022-06-23 16:55:03 +00:00
edgediscovery_test.go TUN-6007: Implement new edge discovery algorithm 2022-06-23 16:55:03 +00:00
mocks_for_test.go TUN-3462: Refactor cloudflared to separate origin from connection 2020-11-11 15:11:42 +00:00
protocol.go TUN-5138: Switch to QUIC on auto protocol based on threshold 2021-10-14 09:18:20 +01:00
protocol_test.go TUN-5138: Switch to QUIC on auto protocol based on threshold 2021-10-14 09:18:20 +01:00