Fix missing delegate

This commit is contained in:
Davide De Rosa 2024-03-31 11:01:01 +02:00
parent 9b3e1541d9
commit 6b743cfa9d
No known key found for this signature in database
GPG Key ID: A48836171C759F5E
1 changed files with 6 additions and 0 deletions

View File

@ -37,6 +37,12 @@ private enum State {
case temporaryShutdown(_ settingsGenerator: PacketTunnelSettingsGenerator)
}
public protocol WireGuardAdapterDelegate: AnyObject {
func adapterShouldReassert(_ adapter: WireGuardAdapter, reasserting: Bool)
func adapterShouldSetNetworkSettings(_ adapter: WireGuardAdapter, settings: NEPacketTunnelNetworkSettings, completionHandler: ((Error?) -> Void)?)
}
public class WireGuardAdapter {
public typealias LogHandler = (WireGuardLogLevel, String) -> Void