Skip to content

Commit 9f356e5

Browse files
fix: set network extension as unconfigured when system extension is deleted (#162)
This fixes a bug when `Launch Coder Connect at startup` is enabled when updating the app with #161, where the app attempts to start too early, as it thinks the VPN is configured, but it was unconfigured with the deletion of the system extension.
1 parent 05e41b7 commit 9f356e5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Coder-Desktop/Coder-Desktop/VPN/VPNSystemExtension.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ extension CoderVPNService: SystemExtensionAsyncRecorder {
6363
// system extension was successfully installed, so we don't need the delegate any more
6464
systemExtnDelegate = nil
6565
}
66+
if state == .uninstalled {
67+
// System extension was deleted, and the VPN configurations go with it
68+
neState = .unconfigured
69+
}
6670
}
6771

6872
func installSystemExtension() {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy