Posts

Post not yet marked as solved
12 Replies
I am also seeing the Missing protocol or protocol has invalid type an error message with the below code. Help me to configure the correct protocol to set for NETransparentProxyManager object.VCDebug Failed to save the filter configuration: Missing protocol or protocol has invalid typeI am testing this sample code with 10.15.4 Beta version. func enableFilterConfiguration() { os_log("VCDebug enableFilterConfiguration() enter") let appTransparentProxyManager = NETransparentProxyManager.shared() guard !appTransparentProxyManager.isEnabled else { registerWithProvider() return } loadFilterConfiguration { success in guard success else { self.status = .stopped return } let proto = NETunnelProviderProtocol() //proto.serverAddress = "127.0.0.1" appTransparentProxyManager.localizedDescription = "Transparent Proxy Test" appTransparentProxyManager.protocolConfiguration = proto appTransparentProxyManager.isEnabled = true appTransparentProxyManager.saveToPreferences { saveError in DispatchQueue.main.async { if let error = saveError { os_log("VCDebug Failed to save the filter configuration: %@", error.localizedDescription) self.status = .stopped return } self.registerWithProvider() } } } }