Thanks to visit codestin.com
Credit goes to github.com

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

+4
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)