summaryrefslogtreecommitdiffhomepage
path: root/android/src/main
diff options
context:
space:
mode:
authorJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2020-11-21 20:54:26 +0000
committerJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2020-12-16 12:36:00 +0000
commitfb5d6a7fcb0df75554431eba1720378e7b434d3f (patch)
tree5fcb4b6ce9c3bc22a01479f59cd682d03c477bf1 /android/src/main
parent4be0d0eaaf23ce277972470a610fa7f3ec4bfbf9 (diff)
downloadmullvadvpn-fb5d6a7fcb0df75554431eba1720378e7b434d3f.tar.xz
mullvadvpn-fb5d6a7fcb0df75554431eba1720378e7b434d3f.zip
Add `CreateTunResult.InvalidDnsServers` variant
Diffstat (limited to 'android/src/main')
-rw-r--r--android/src/main/kotlin/net/mullvad/talpid/CreateTunResult.kt10
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()
}