Merge branch 'develop' of github.com:ss-abramchuk/openvpn-adapter into develop

* 'develop' of github.com:ss-abramchuk/openvpn-adapter:
  convert 'packet' to 'data'
This commit is contained in:
Sergey Abramchuk
2017-05-05 17:02:16 +03:00

View File

@@ -536,7 +536,7 @@ static void socketCallback(CFSocketRef socket, CFSocketCallBackType type, CFData
NSMutableData *packet = [NSMutableData new];
[packet appendBytes:&prefix length:sizeof(prefix)];
[packet appendData:packet];
[packet appendData:data];
// Send data to the VPN server
CFSocketSendData(self.vpnSocket, NULL, (CFDataRef)packet, 0.05);