Change -establishTunnel return type (#25)

This commit is contained in:
Jonathan Downing
2017-09-23 10:36:07 +01:00
committed by Sergey Abramchuk
parent 9932456cda
commit aecdeaf0f1
2 changed files with 2 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ using namespace openvpn;
- (BOOL)setMTU:(NSNumber *)mtu;
- (NSInteger)establishTunnel;
- (CFSocketNativeHandle)establishTunnel;
- (void)teardownTunnel:(BOOL)disconnect;
- (void)handleEvent:(const ClientAPI::Event *)event;

View File

@@ -248,7 +248,7 @@ static void socketCallback(CFSocketRef socket, CFSocketCallBackType type, CFData
return YES;
}
- (NSInteger)establishTunnel {
- (CFSocketNativeHandle)establishTunnel {
NSAssert(self.delegate != nil, @"delegate property should not be nil");
NEPacketTunnelNetworkSettings *networkSettings = [[NEPacketTunnelNetworkSettings alloc] initWithTunnelRemoteAddress:self.remoteAddress];