fix: auto tunnel wifi whitelist bug

#472
This commit is contained in:
Zane Schepke 2024-12-08 15:05:48 -05:00
parent efba604c31
commit 708b4c7646
1 changed files with 3 additions and 1 deletions

View File

@ -41,6 +41,8 @@ import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.combine
import kotlinx.coroutines.flow.distinctUntilChanged
import kotlinx.coroutines.flow.filter
import kotlinx.coroutines.flow.filterNot
import kotlinx.coroutines.flow.update
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
@ -259,7 +261,7 @@ class AutoTunnelService : LifecycleService() {
is NetworkStatus.Unavailable -> null
},
)
}.distinctUntilChanged()
}.distinctUntilChanged().filterNot { it.isWifiConnected && it.wifiName == null }
}
private fun combineSettings(): Flow<Pair<Settings, TunnelConfigs>> {