summaryrefslogtreecommitdiffhomepage
path: root/mullvad-daemon/src
diff options
context:
space:
mode:
Diffstat (limited to 'mullvad-daemon/src')
-rw-r--r--mullvad-daemon/src/tunnel.rs17
1 files changed, 10 insertions, 7 deletions
diff --git a/mullvad-daemon/src/tunnel.rs b/mullvad-daemon/src/tunnel.rs
index 4874ee167a..ab2efb62cf 100644
--- a/mullvad-daemon/src/tunnel.rs
+++ b/mullvad-daemon/src/tunnel.rs
@@ -220,12 +220,12 @@ impl InnerParametersGenerator {
GetRelay::Custom(custom_relay) => {
self.last_generated_relays = None;
custom_relay
- // TODO: generate proxy settings for custom tunnels
- .to_tunnel_parameters(self.tunnel_options.clone(), None)
- .map_err(|e| {
- log::error!("Failed to resolve hostname for custom tunnel config: {}", e);
- Error::ResolveCustomHostname
- })
+ // TODO: generate proxy settings for custom tunnels
+ .to_tunnel_parameters(self.tunnel_options.clone(), None)
+ .map_err(|e| {
+ log::error!("Failed to resolve hostname for custom tunnel config: {}", e);
+ Error::ResolveCustomHostname
+ })
}
}
}
@@ -325,7 +325,10 @@ impl From<Error> for ParameterGenerationError {
ParameterGenerationError::NoMatchingBridgeRelay
}
Error::ResolveCustomHostname => {
- ParameterGenerationError::CustomTunnelHostResultionError
+ ParameterGenerationError::CustomTunnelHostResolutionError
+ }
+ Error::SelectRelay(mullvad_relay_selector::Error::IpVersionUnavailable { family }) => {
+ ParameterGenerationError::IpVersionUnavailable { family }
}
Error::NoAuthDetails | Error::SelectRelay(_) | Error::Device(_) => {
ParameterGenerationError::NoMatchingRelay