Commit 3f912ed 1 parent 13bb300 commit 3f912ed Copy full SHA for 3f912ed
File tree 2 files changed +4
-4
lines changed
app/src/main/java/com/zaneschepke/wireguardautotunnel
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ open class BaseTunnel(
200
200
private suspend fun startTunnelConfigChangeJob (tunnel : TunnelConf ) = coroutineScope {
201
201
appDataRepository.tunnels.flow.collect { storageTuns ->
202
202
storageTuns.firstOrNull { it.id == tunnel.id }?.let { storageTun ->
203
- if (tunnel.isQuickConfigChanged (storageTun) || tunnel.isPingConfigMatching(storageTun)) {
203
+ if (! tunnel.isQuickConfigMatching (storageTun) || ! tunnel.isPingConfigMatching(storageTun)) {
204
204
bounceTunnel(tunnel)
205
205
}
206
206
}
Original file line number Diff line number Diff line change @@ -62,9 +62,9 @@ data class TunnelConf(
62
62
}
63
63
}
64
64
65
- fun isQuickConfigChanged (updatedConf : TunnelConf ): Boolean {
66
- return updatedConf.wgQuick ! = wgQuick ||
67
- updatedConf.amQuick ! = amQuick
65
+ fun isQuickConfigMatching (updatedConf : TunnelConf ): Boolean {
66
+ return updatedConf.wgQuick = = wgQuick ||
67
+ updatedConf.amQuick = = amQuick
68
68
}
69
69
70
70
fun isPingConfigMatching (updatedConf : TunnelConf ): Boolean {
You can’t perform that action at this time.
0 commit comments