summaryrefslogtreecommitdiffhomepage
path: root/android/lib/daemon-grpc
diff options
context:
space:
mode:
authorJonatan Rhodin <jonatan.rhodin@mullvad.net>2025-04-09 10:41:49 +0200
committerJonatan Rhodin <jonatan.rhodin@mullvad.net>2025-04-09 10:41:49 +0200
commit75da013ccc20e5a612a87aa826c4e057da22567a (patch)
treec7ceded57a9d31680e40e91ef15123e3b3e984ed /android/lib/daemon-grpc
parent9a6938a4a32ecc162cc5afcf15fa636de2f9b9fe (diff)
parent1272d1bbe4c73529d3c4ca358da5b58a19ebd84d (diff)
downloadmullvadvpn-75da013ccc20e5a612a87aa826c4e057da22567a.tar.xz
mullvadvpn-75da013ccc20e5a612a87aa826c4e057da22567a.zip
Merge branch 'implement-device-ip-version-error-droid-1918'
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")
}