convert 'packet' to 'data'

resolved problem (IP Packet with unknown IP version = 0)
This commit is contained in:
gucklood
2017-04-27 18:25:18 +08:00
committed by GitHub
parent fd67ca8ee1
commit 1f6c5d2295

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);