diff options
| author | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2020-11-21 20:54:26 +0000 |
|---|---|---|
| committer | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2020-12-16 12:36:00 +0000 |
| commit | fb5d6a7fcb0df75554431eba1720378e7b434d3f (patch) | |
| tree | 5fcb4b6ce9c3bc22a01479f59cd682d03c477bf1 /android/src | |
| parent | 4be0d0eaaf23ce277972470a610fa7f3ec4bfbf9 (diff) | |
| download | mullvadvpn-fb5d6a7fcb0df75554431eba1720378e7b434d3f.tar.xz mullvadvpn-fb5d6a7fcb0df75554431eba1720378e7b434d3f.zip | |
Add `CreateTunResult.InvalidDnsServers` variant
Diffstat (limited to 'android/src')
| -rw-r--r-- | android/src/main/kotlin/net/mullvad/talpid/CreateTunResult.kt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/android/src/main/kotlin/net/mullvad/talpid/CreateTunResult.kt b/android/src/main/kotlin/net/mullvad/talpid/CreateTunResult.kt index 276ed81521..dfa82852f1 100644 --- a/android/src/main/kotlin/net/mullvad/talpid/CreateTunResult.kt +++ b/android/src/main/kotlin/net/mullvad/talpid/CreateTunResult.kt @@ -1,5 +1,7 @@ package net.mullvad.talpid +import java.net.InetAddress + sealed class CreateTunResult { open val isOpen get() = false @@ -9,6 +11,14 @@ sealed class CreateTunResult { get() = true } + class InvalidDnsServers( + val addresses: ArrayList<InetAddress>, + val tunFd: Int + ) : CreateTunResult() { + override val isOpen + get() = true + } + class PermissionDenied : CreateTunResult() class TunnelDeviceError : CreateTunResult() } |
