Skip to content

Commit

Permalink
Never select OpenVPN on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon authored and Pururun committed Dec 11, 2023
1 parent 6f78939 commit f867e89
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mullvad-relay-selector/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,12 @@ impl RelaySelector {
default_tunnel_type: TunnelType,
custom_lists: &CustomListsSettings,
) -> Result<NormalSelectedRelay, Error> {
#[cfg(target_os = "android")]
{
self.get_wireguard_endpoint(relay_constraints, retry_attempt, custom_lists)
}

#[cfg(not(target_os = "android"))]
match relay_constraints.tunnel_protocol {
Constraint::Only(TunnelType::OpenVpn) => self.get_openvpn_endpoint(
relay_constraints,
Expand Down

0 comments on commit f867e89

Please sign in to comment.