Skip to content

Commit 85f6d21

Browse files
committed
fix: set network extension as unconfigured when system extension is deleted
1 parent 05e41b7 commit 85f6d21

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)