Fixed: Tailscale will not reconnect to the Tailscale network after using another VPN until Tailscale app is force closed because currentState=Ipn.State.Stopping on subsequent attempts to start TS

pull/730/head
Segi 2 weeks ago
parent 94f2829e7c
commit 7c65568b86

@ -53,6 +53,8 @@ If you installed Android Studio the tools may not be in your path. To get the
correct tool path, run `make androidpath` and export the provided path in your
shell.
You will also need to run `make llibtailscale` to build the Tailscale AAR which is required to build the Android app.
#### Code Formatting
The ktmft plugin on the default setting should be used to autoformat all Java, Kotlin

@ -85,6 +85,7 @@ android {
buildConfigField "String", "GITHUB_2FA_SECRET", "\"" + getLocalProperty("github2FASecret", "")+"\""
}
debug {
applicationIdSuffix ".debug"
manifestPlaceholders.leanbackRequired = false
}
release {

@ -210,6 +210,10 @@ class MainViewModel(private val appViewModel: AppViewModel) : IpnViewModel() {
val currentState = Notifier.state.value
if (desiredState) {
if (currentState != Ipn.State.Stopped) {
stopVPN()
}
// User wants to turn ON the VPN
when {
currentState != Ipn.State.Running -> startVPN()

Loading…
Cancel
Save