From 85f6d21c32c7583c017b0c4eb9ef5b802c7996f3 Mon Sep 17 00:00:00 2001 From: Ethan Dickson Date: Fri, 16 May 2025 15:29:47 +1000 Subject: [PATCH] fix: set network extension as unconfigured when system extension is deleted --- Coder-Desktop/Coder-Desktop/VPN/VPNSystemExtension.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Coder-Desktop/Coder-Desktop/VPN/VPNSystemExtension.swift b/Coder-Desktop/Coder-Desktop/VPN/VPNSystemExtension.swift index 39d625c..6b24202 100644 --- a/Coder-Desktop/Coder-Desktop/VPN/VPNSystemExtension.swift +++ b/Coder-Desktop/Coder-Desktop/VPN/VPNSystemExtension.swift @@ -63,6 +63,10 @@ extension CoderVPNService: SystemExtensionAsyncRecorder { // system extension was successfully installed, so we don't need the delegate any more systemExtnDelegate = nil } + if state == .uninstalled { + // System extension was deleted, and the VPN configurations go with it + neState = .unconfigured + } } func installSystemExtension() {