TunnlTo / desktop-app

TunnlTo is a Windows WireGuard VPN client built for split tunnelling.
https://tunnl.to
1.54k stars 62 forks source link

ISSUE: Tunnel configs do not save after restarting app #213

Open tokyoquest opened 3 months ago

tokyoquest commented 3 months ago

Describe the issue Every time i restart TunnlTo or my PC at all (which also leads to starting TunnlTo as it's in autorun) its config resets to something like mid-august state, resetting to old tunnel which i set up at that time. New configs don't save for persistent amount of time, and restarting TunnlTo leads to state reset.

To Reproduce Steps to reproduce the behavior:

  1. Set a new tunnel
  2. Click Save
  3. Exit TunnlTo
  4. Start TunnlTo
  5. See error

Expected behavior Setting up new tunnel saves it in some place and not resets to old state every TunnlTo restart

Tested on official WireGuard client Not Applicable.

Tested on different VPN servers Not Applicable.

Screenshots and GIF's Not Applicable.

Tunnel Config https://imgur.com/a/txDmA5W

Logs https://pastebin.com/u9pe8Hwx

Starting WireSock directly Not Applicable.

loftyshine commented 3 months ago

I am experiencing exactly the same issue.

brendanosborne commented 3 months ago

I cannot think of a reason why this would be happening. The configs are stored in Edge local storage. You can see the configs here:

On the right panel you will see the "tunnels" key.

Is there anything unusual with the setup of Microsoft Edge on your PC's? What version of Windows are you running?

RedSynthez commented 2 months ago

I cannot think of a reason why this would be happening. The configs are stored in Edge local storage. You can see the configs here:

  • Right click somewhere in the TunnlTo app
  • Select "Inspect"
  • Select "Application" tab
  • Expand "Local Storage" in the left panel and then select "https://tauri.localhost"

On the right panel you will see the "tunnels" key.

Is there anything unusual with the setup of Microsoft Edge on your PC's? What version of Windows are you running?

Had the same problem, launched Edge, it said it was updated (don't know when, since I'm not using it). Now I can update or delete configs. Thank you. edit: Nope, have the same problem anyway. Every time I restart my pc my config resets to an old one. I'm using windows 11. I've checked Edge and it's updated.

tokyoquest commented 2 months ago

for me, completely removing this version of TunnlTo and its configuration files, then installing older version worked just fine. not a fix, but workaround

SeiSilver commented 2 months ago

@cutscries I had the same issue. I just uninstalled TunnlTo and WireSock VPN, then reinstalled them, and the issue was resolved.

ParkSanghyeong commented 2 months ago

I have the same issue. Previously the settings were saved permanently, but after updating from Windows 10 to Windows 11, the settings are not being saved. Of course, other issues could be the cause, but the most likely cause seems to be Windows 11.

nikolai-imversed commented 2 months ago

same. bump. UPD: This worked for me, but I dunno if this is the workaround for anyone else

Don't forget to backup your configs

  1. Goto Appdata > Local.
  2. Remove com.tunnl.to
  3. Import your configs again

It has solved local store resetting to old configs

brendanosborne commented 1 month ago

same. bump. UPD: This worked for me, but I dunno if this is the workaround for anyone else

Don't forget to backup your configs

  1. Goto Appdata > Local.
  2. Remove com.tunnl.to
  3. Import your configs again

It has solved local store resetting to old configs

Is this working for anyone else?

I suspect it is something to do with a webview2 windows update.

fullspb commented 1 month ago

same. bump. UPD: This worked for me, but I dunno if this is the workaround for anyone else

Don't forget to backup your configs

  1. Goto Appdata > Local.
  2. Remove com.tunnl.to
  3. Import your configs again

It has solved local store resetting to old configs

it's work. thx

AT-StephenDetomasi commented 1 month ago

Looking forward to a proper fix of this, it's quite annoying

nikolai-imversed commented 1 month ago

same. bump. UPD: This worked for me, but I dunno if this is the workaround for anyone else Don't forget to backup your configs

  1. Goto Appdata > Local.
  2. Remove com.tunnl.to
  3. Import your configs again

It has solved local store resetting to old configs

Is this working for anyone else?

I suspect it is something to do with a webview2 windows update.

The bug has reoccured couple of weeks after. It might be an issue with local store. I've been playing around with storage folders in EBWebView > Default. Removing Local Storage (Also removed Sessions, Session Storage, shared_dbs, but I am not certain these parts of an app are where bug is) and re-importing configs back are solving this issue temporarily.

brendanosborne commented 1 month ago

All I can do with this version is update dependencies and hope for the best, as I can't replicate the issue. It appears to be something to do with windows update and Edge.

Local storage has been a pain to deal with. In the premium beta I've started moving away from local storage altogether.

https://github.com/TunnlTo/desktop-app/discussions/222

benten115124ua commented 1 day ago

When will this error be fixed? For three months, people suffer and the developer does nothing!

benten115124ua commented 1 day ago

How do I change the app settings at all? Is there a working way? I can't even turn off the autorun of the application to try alternative options.

Ushakovi commented 1 day ago

Deleting the User\AppData\Local\com.tunnel.to\EBWebView\Default folder and client settings again helps me. The settings are saved, but if you need to change them after that, then you need to do it again

benten115124ua commented 20 hours ago

Deleting the User\AppData\Local\com.tunnel.to\EBWebView\Default folder and client settings again helps me. The settings are saved, but if you need to change them after that, then you need to do it again

And do this every time I want to change something? I have several different tunnels configured in the program, and when I delete a folder they are all erased. The program does not have the ability to export settings and you have to rewrite everything manually. It takes a lot of time and is not convenient at all. Why doesn't the developer of the program just fix this error?