summaryrefslogtreecommitdiffhomepage
path: root/android/src/main
diff options
context:
space:
mode:
authorJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2020-01-28 20:09:36 +0000
committerJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2020-02-10 15:40:37 +0000
commite25d41b688f0d89b024ad51943eb611d9e15a3c0 (patch)
tree3f70ce992ebe634499864f12830cb7b50ce5eb75 /android/src/main
parentbe0a46fd6919c032dc908421ba18d3f2a2b499c7 (diff)
downloadmullvadvpn-e25d41b688f0d89b024ad51943eb611d9e15a3c0.tar.xz
mullvadvpn-e25d41b688f0d89b024ad51943eb611d9e15a3c0.zip
Implement `MullvadDaemon.setAllowLan` method
Diffstat (limited to 'android/src/main')
-rw-r--r--android/src/main/kotlin/net/mullvad/mullvadvpn/service/MullvadDaemon.kt5
1 files changed, 5 insertions, 0 deletions
diff --git a/android/src/main/kotlin/net/mullvad/mullvadvpn/service/MullvadDaemon.kt b/android/src/main/kotlin/net/mullvad/mullvadvpn/service/MullvadDaemon.kt
index 8e8806cc70..e61567a0fe 100644
--- a/android/src/main/kotlin/net/mullvad/mullvadvpn/service/MullvadDaemon.kt
+++ b/android/src/main/kotlin/net/mullvad/mullvadvpn/service/MullvadDaemon.kt
@@ -81,6 +81,10 @@ class MullvadDaemon(val vpnService: MullvadVpnService) {
setAccount(daemonInterfaceAddress, accountToken)
}
+ fun setAllowLan(allowLan: Boolean) {
+ setAllowLan(daemonInterfaceAddress, allowLan)
+ }
+
fun shutdown() {
shutdown(daemonInterfaceAddress)
}
@@ -112,6 +116,7 @@ class MullvadDaemon(val vpnService: MullvadVpnService) {
private external fun getVersionInfo(daemonInterfaceAddress: Long): AppVersionInfo?
private external fun getWireguardKey(daemonInterfaceAddress: Long): PublicKey?
private external fun setAccount(daemonInterfaceAddress: Long, accountToken: String?)
+ private external fun setAllowLan(daemonInterfaceAddress: Long, allowLan: Boolean)
private external fun shutdown(daemonInterfaceAddress: Long)
private external fun updateRelaySettings(
daemonInterfaceAddress: Long,