Removed SetTunnelStatus

Signed-off-by: Alessio Nossa <alessio.nossa@gmail.com>
This commit is contained in:
Alessio Nossa
2023-04-01 16:00:24 +02:00
parent c29787f898
commit 63c09565f2
7 changed files with 4 additions and 452 deletions
@@ -5,10 +5,6 @@ import Foundation
import NetworkExtension
import os.log
#if os(iOS)
import Intents
#endif
protocol TunnelsManagerListDelegate: AnyObject {
func tunnelAdded(at index: Int)
func tunnelModified(at index: Int)
@@ -311,12 +307,6 @@ class TunnelsManager {
}
#elseif os(iOS)
(tunnelProviderManager.protocolConfiguration as? NETunnelProviderProtocol)?.destroyConfigurationReference()
INInteraction.delete(with: "com.wireguard.intents.tunnel.\(tunnel.name)") { error in
if let error = error {
wg_log(.error, message: "Error deleting donated interactions for tunnel \(tunnel.name): \(error.localizedDescription)")
}
}
#else
#error("Unimplemented")
#endif