: View {
.padding(.horizontal, Theme.Size.trayInset)
.padding(.vertical, Theme.Size.trayPadding)
.frame(maxWidth: .infinity)
- default:
+ case (.connected, true):
EmptyView()
}
}
From 9f356e55dab84d783959b039d5621b5a130e1737 Mon Sep 17 00:00:00 2001
From: Ethan <39577870+ethanndickson@users.noreply.github.com>
Date: Fri, 16 May 2025 15:38:43 +1000
Subject: [PATCH 3/3] 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.
---
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 39d625ca..6b242020 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() {
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