Skip to content

Commit

Permalink
Enable Multihop on Android in the relay selector
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusPettersson98 committed Nov 22, 2024
1 parent 76270b1 commit 14712da
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions mullvad-relay-selector/src/relay_selector/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -722,12 +722,6 @@ impl RelaySelector {
custom_lists: &CustomListsSettings,
parsed_relays: &ParsedRelays,
) -> Result<WireguardConfig, Error> {
// TODO: Remove when Android gets support for multihop.
if cfg!(target_os = "android") {
let relay = Self::get_wireguard_singlehop_config(query, custom_lists, parsed_relays)
.ok_or(Error::NoRelay)?;
return Ok(WireguardConfig::from(relay));
}
let inner = if query.singlehop() {
match Self::get_wireguard_singlehop_config(query, custom_lists, parsed_relays) {
Some(exit) => WireguardConfig::from(exit),
Expand Down

0 comments on commit 14712da

Please sign in to comment.