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

IgnoredSSIDs doesn't work anymore after upgrading to macOS Sonoma #28

Closed telephono closed 10 months ago

telephono commented 10 months ago

I am using VPNStatus version 1.4 with following config:

defaults read org.timac.VPNStatus
{
   ---snip---

    IgnoredSSIDs = "FRITZ!Box 7580 XX";

   ---snip---
}

Everything worked beautyfully until I upgraded to macOS Sonoma. After that, the wifi isn't ignored anymore and VPNStatus always tries to connect to the VPN even when connected to the FRITZ!Box 7580 XX wifi.

telephono commented 10 months ago

Following your advice from issue #24 https://github.com/Timac/VPNStatus/blob/8fe60978d8647caaecd2f26462200f07819ba96e/Common/ACConnectionManager.m#L233

I tried

CWInterface *wifi = [[CWWiFiClient sharedWiFiClient] interface];
printf("%s", [wifi.ssid UTF8String]);

But this only returns (null).

I don't know much Objective-C and macOS SDK, so I'm not sure if this is even what you meant, anyway...

telephono commented 10 months ago

I found this thread: Developer Forums Apperently you have to enable Location Services to get acces to the SSID in Sonoma.

Timac commented 10 months ago

Thanks a lot @telephono for the bug report and info! Once I update to Sonoma (in a couple of days probably), I will try to address this issue.

Timac commented 10 months ago

macOS 14 Sonoma support has been added in VPNStatus 2.0: https://github.com/Timac/VPNStatus/releases

The precompiled binaries are also now code-signed to simplify the installation.