zaneschepke / wgtunnel

An alternative Android client app for WireGuard VPN
https://zaneschepke.com/wgtunnel-docs
MIT License
917 stars 47 forks source link

[BUG] - Turning tunnel off/auto-tunneling paused required before editing tunnels #271

Open Dondrejohnson5 opened 3 months ago

Dondrejohnson5 commented 3 months ago

Describe the bug WG Tunnel requires the tunnel to be turned off before it can be edited. Same error extends to other disabled tunnels in the app, if there are more than one, if auto tunneling is not paused or off entirely. The official WireGuard app does not present this restriction

Smartphone (please complete the following information):

To Reproduce Steps to reproduce the behavior:

1: Import two WireGuard tunnels and enable the first one. 2a: Long press on the second tunnel to edit it, it is successful. 2b: Long press on the first one to attempt to edit it, an error occurs to prompt you to disable the tunnel first. 3: Start auto-tunneling, ensuring the first tunnel remains enabled 4: Now attempt to edit the second tunnel again, you can no longer edit this tunnel because auto-tunneling is on

Expected behavior I expect to be able to edit the tunnel, save the new settings, and the tunnel instantly restarts for the new settings to take effect, similar to what official WireGuard app allows, with no need of tampering current auto-tunneling mode or disabling and re-enabling tunnel manually

Screenshots (Only if necessary)

Additional context

dkoppenh commented 2 weeks ago

I can edit an active tunnel on version 3.5.4

Dondrejohnson5 commented 2 weeks ago

True, however when you save your changes, the tunnel does not update or restart, it is continuously active with your previous settings until you manually restart it