summaryrefslogtreecommitdiffhomepage
path: root/android/src
diff options
context:
space:
mode:
Diffstat (limited to 'android/src')
-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()
}