mirror of
https://github.com/deneraraujo/OpenVPNAdapter.git
synced 2026-02-11 00:00:08 +08:00
Change -establishTunnel return type (#25)
This commit is contained in:
committed by
Sergey Abramchuk
parent
9932456cda
commit
aecdeaf0f1
@@ -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;
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user