diff options
| -rw-r--r-- | mullvad-daemon/src/relays/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mullvad-daemon/src/relays/mod.rs b/mullvad-daemon/src/relays/mod.rs index 5affc15fb2..ceaea8e135 100644 --- a/mullvad-daemon/src/relays/mod.rs +++ b/mullvad-daemon/src/relays/mod.rs @@ -53,6 +53,9 @@ const WIREGUARD_EXIT_CONSTRAINTS: WireguardMatcher = WireguardMatcher { const UDP2TCP_PORTS: [u16; 3] = [80, 443, 5001]; +/// How much to favor bridges that are closer to the selected relay location. Each +/// bridge is assigned a base weight based on its rank order proximity to the location. +/// Its final weight equals `(base weight) ^ BRIDGE_PROXIMITY_BIAS`. const BRIDGE_PROXIMITY_BIAS: u32 = 3; #[derive(err_derive::Error, Debug)] |
