Do not read from packetFlow when tunnel is not yet fully initialized and configured.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jeroen Leenarts
2018-08-12 21:39:39 +02:00
parent d38a81c301
commit a27328ed72
2 changed files with 11 additions and 0 deletions
@@ -12,6 +12,7 @@
@interface WireGuardGoWrapper : NSObject
@property (nonatomic, weak) NEPacketTunnelFlow *packetFlow;
@property (nonatomic, assign) BOOL configured;
- (BOOL) turnOnWithInterfaceName: (NSString *)interfaceName settingsString: (NSString *)settingsString;
- (void) turnOff;