Add provider configuration generation.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jeroen Leenarts
2018-08-06 09:04:29 +02:00
parent 2a0b84eeb9
commit 5697d6e7e2
3 changed files with 87 additions and 19 deletions
@@ -21,12 +21,6 @@ class PacketTunnelProvider: NEPacketTunnelProvider {
/// A reference to the WireGuard wrapper object.
let wireGuardWrapper = WireGuardGoWrapper()
/// The completion handler to call when the tunnel is fully established.
var pendingStartCompletion: ((Error?) -> Void)?
/// The completion handler to call when the tunnel is fully disconnected.
var pendingStopCompletion: (() -> Void)?
// MARK: NEPacketTunnelProvider
/// Begin the process of establishing the tunnel.