Timac / VPNStatus

VPNStatus, a replacement for macOS builtin VPN Status
https://blog.timac.org/2018/0719-vpnstatus/
MIT License
221 stars 31 forks source link

Defaults settings not being read #22

Closed skaiteo closed 1 year ago

skaiteo commented 1 year ago

I've followed the instructions on the README, and set up the settings as such: image But it doesn't seem to be reading those values, as the auto connect still takes 120 seconds, and it still reconnects to VPN on those SSIDs.

I'm running a 2021 M1 MacBook Pro 16-inch. Is there perhaps some permission issue that's not allowing it to read those settings?

Timac commented 1 year ago

@skaiteo The preferences look correct. Are you using the latest version 1.2? See https://github.com/Timac/VPNStatus/releases/tag/1.2

skaiteo commented 1 year ago

Yeap I am

Timac commented 1 year ago

@skaiteo I just checked: the minimum value for AlwaysConnectedRetryDelay is 11. If you set this value to 10 or lower, the default 120 seconds will be used. I will add a note in the README about it, sorry about that!

Let me know if this solves the issue

skaiteo commented 1 year ago

If I remember correctly, it wasn't working even with a larger value like 30, but I'll give that a try and report back.

Timac commented 1 year ago

I just tested it successfully with:

skaiteo commented 1 year ago

Alright, AlwaysConnectedRetryDelay works perfectly, but IgnoredSSIDs is still not working.

Timac commented 1 year ago

Thanks @skaiteo, there was indeed an issue where the preferences IgnoredSSIDs would be ignored if the VPN was set to always auto connect.

I fixed the issue and release the version 1.3. You can find it here: https://github.com/Timac/VPNStatus/releases

skaiteo commented 1 year ago

Thanks for the quick action, I've tested it, and it works perfectly now!

As a side note, I discovered that the IgnoredSSID settings doesn't require an app restart. It seems to read the setting every time the timer fires.