summaryrefslogtreecommitdiffhomepage
path: root/android/lib/daemon-grpc
diff options
context:
space:
mode:
Diffstat (limited to 'android/lib/daemon-grpc')
-rw-r--r--android/lib/daemon-grpc/src/main/kotlin/net/mullvad/mullvadvpn/lib/daemon/grpc/mapper/ToDomain.kt6
1 files changed, 5 insertions, 1 deletions
diff --git a/android/lib/daemon-grpc/src/main/kotlin/net/mullvad/mullvadvpn/lib/daemon/grpc/mapper/ToDomain.kt b/android/lib/daemon-grpc/src/main/kotlin/net/mullvad/mullvadvpn/lib/daemon/grpc/mapper/ToDomain.kt
index 40ee4d6bcf..10c417cf1c 100644
--- a/android/lib/daemon-grpc/src/main/kotlin/net/mullvad/mullvadvpn/lib/daemon/grpc/mapper/ToDomain.kt
+++ b/android/lib/daemon-grpc/src/main/kotlin/net/mullvad/mullvadvpn/lib/daemon/grpc/mapper/ToDomain.kt
@@ -302,7 +302,11 @@ internal fun ManagementInterface.ErrorState.GenerationError.toDomain(): Paramete
ManagementInterface.ErrorState.GenerationError.NO_WIREGUARD_KEY ->
ParameterGenerationError.NoWireguardKey
ManagementInterface.ErrorState.GenerationError.CUSTOM_TUNNEL_HOST_RESOLUTION_ERROR ->
- ParameterGenerationError.CustomTunnelHostResultionError
+ ParameterGenerationError.CustomTunnelHostResolutionError
+ ManagementInterface.ErrorState.GenerationError.NETWORK_IPV4_UNAVAILABLE ->
+ ParameterGenerationError.Ipv4_Unavailable
+ ManagementInterface.ErrorState.GenerationError.NETWORK_IPV6_UNAVAILABLE ->
+ ParameterGenerationError.Ipv6_Unavailable
ManagementInterface.ErrorState.GenerationError.UNRECOGNIZED ->
throw IllegalArgumentException("Unrecognized parameter generation error")
}