diff --git a/SBTUITunnelHostServer/Sources/AppDelegate.swift b/SBTUITunnelHostServer/Sources/AppDelegate.swift index 39fb179..d1b01d4 100644 --- a/SBTUITunnelHostServer/Sources/AppDelegate.swift +++ b/SBTUITunnelHostServer/Sources/AppDelegate.swift @@ -57,6 +57,10 @@ class AppDelegate: NSObject, NSApplicationDelegate, GCDWebServerDelegate { } func startup() { + if !CGPreflightScreenCaptureAccess() { + CGRequestScreenCaptureAccess() + } + server?.stop() server = GCDWebServer()