mirror of
https://github.com/deneraraujo/OpenVPNAdapter.git
synced 2026-04-24 00:00:05 +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;
|
- (BOOL)setMTU:(NSNumber *)mtu;
|
||||||
|
|
||||||
- (NSInteger)establishTunnel;
|
- (CFSocketNativeHandle)establishTunnel;
|
||||||
- (void)teardownTunnel:(BOOL)disconnect;
|
- (void)teardownTunnel:(BOOL)disconnect;
|
||||||
|
|
||||||
- (void)handleEvent:(const ClientAPI::Event *)event;
|
- (void)handleEvent:(const ClientAPI::Event *)event;
|
||||||
|
|||||||
@@ -248,7 +248,7 @@ static void socketCallback(CFSocketRef socket, CFSocketCallBackType type, CFData
|
|||||||
return YES;
|
return YES;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSInteger)establishTunnel {
|
- (CFSocketNativeHandle)establishTunnel {
|
||||||
NSAssert(self.delegate != nil, @"delegate property should not be nil");
|
NSAssert(self.delegate != nil, @"delegate property should not be nil");
|
||||||
|
|
||||||
NEPacketTunnelNetworkSettings *networkSettings = [[NEPacketTunnelNetworkSettings alloc] initWithTunnelRemoteAddress:self.remoteAddress];
|
NEPacketTunnelNetworkSettings *networkSettings = [[NEPacketTunnelNetworkSettings alloc] initWithTunnelRemoteAddress:self.remoteAddress];
|
||||||
|
|||||||
Reference in New Issue
Block a user