mirror of
https://github.com/wgtunnel/android.git
synced 2026-07-03 14:07:49 +02:00
fix: watcher service mobile data monitoring
Fix for a bug where watcher service does not start monitoring mobile data when feature is turned on
This commit is contained in:
@@ -17,7 +17,7 @@ android {
|
||||
|
||||
val versionMajor = 1
|
||||
val versionMinor = 1
|
||||
val versionPatch = 4
|
||||
val versionPatch = 5
|
||||
val versionBuild = 0
|
||||
|
||||
defaultConfig {
|
||||
|
||||
+3
-1
@@ -131,7 +131,9 @@ class WireGuardConnectivityWatcherService : ForegroundService() {
|
||||
if(!settings.isNullOrEmpty()) {
|
||||
setting = settings[0]
|
||||
}
|
||||
watchForWifiConnectivityChanges()
|
||||
GlobalScope.launch {
|
||||
watchForWifiConnectivityChanges()
|
||||
}
|
||||
if(setting.isTunnelOnMobileDataEnabled) {
|
||||
GlobalScope.launch {
|
||||
watchForMobileDataConnectivityChanges()
|
||||
|
||||
Reference in New Issue
Block a user