Merge pull request #4 from yutingLei/patch-1

convert 'packet' to 'data'
This commit is contained in:
Sergey Abramchuk
2017-04-27 21:52:06 +03:00
committed by GitHub

View File

@@ -520,7 +520,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);