-
-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] - Problem with app: Excluded Apps get reset #465
Comments
Hello! Thank you for the report. I'll try to reproduce this. |
Hmu if you need more info |
I have the exact same bug. Device: Google Pixel 8 Pro |
I can confirm this on a Google Pixel 7 Pro. I excluded Android Auto because it doesn't work with VPN. After switching networks it resets to "Tunneling apps: all" |
Hello all! Thank you for the report and the info. I'll look into a fix for this. |
Hello @zaneschepke, I might be completely wrong, but I believe I have found the issue. Unless I misunderstood, the Therefore, if the user creates a tunnel without excluding any applications, it is added to the Hopefully, what I have said makes sense, and the solution would be to change the following code from: appDataRepository.get().tunnels.getTunnelConfigsFlow().distinctUntilChanged { old, new ->
old.map { it.isActive } != new.map { it.isActive }
}, to: appDataRepository.get().tunnels.getTunnelConfigsFlow().distinctUntilChanged(), Edit: Another solution would be to change those lines:
To only update the |
Thank you very much for the detailed explanation! |
If I am right, you can configure your tunnel correctly, then force close the application and launch it again to fix the issue. All of that while staying on the same network not to trigger the bug, of course. |
You are right, I can confirm that as workaround! Thank you very much! It's important to force close the app in app settings and not just end it in the recent apps screen. |
Thank you @bmonjoie for the detailed explanation and solution! This is a bug then as it should actually be doing the opposite. This flow should be ignoring changes to isActive state and collecting states for all other tunnelConfig changes. The reason we want to ignore the isActive state is to allow users the ability to manually toggle tunnels off even while auto-tunneling (until the next network event change). Otherwise, the tunnel will just immediately toggle back on. |
@zaneschepke I was wrong about the root cause of this bug. I didn't understand the I believe that the issue is the one I described: the content of the tunnel configs was not updated correctly in the flow, and when the AutoTunnel was turned on, it would override the content in the database. But this is for a different reason than I thought. I believe the reason this occurred is because of the use of Line 282 in cab2945
I believe this bug is fixed in 3.6.3. Sorry for misleading you. |
Describe the bug
If I exclude apps from the tunnel via the edit tunnel options and save them, the setting gets reset by the next connection change.
So, I exclude app, save the change, switch from WiFi to mobile, the tunnel gets activated. Apps are still excluded. When I switch back to WiFi and the tunnel shuts off, the excluded apps are reset.
Smartphone (please complete the following information):
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect the settings to stay after a connection change.
Screenshots (Only if necessary)
Additional context
IMHO it worked till a few days ago.
The text was updated successfully, but these errors were encountered: