mirror of
https://github.com/deneraraujo/OpenVPNAdapter.git
synced 2024-10-07 01:32:08 +08:00
Fix incorrect macro
This commit is contained in:
parent
76413feea7
commit
6d2de5cb4e
@ -599,7 +599,7 @@ static void socketCallback(CFSocketRef socket, CFSocketCallBackType type, CFData
|
|||||||
protocol = CFSwapInt32BigToHost(protocol);
|
protocol = CFSwapInt32BigToHost(protocol);
|
||||||
|
|
||||||
NSData *packet = [data subdataWithRange:NSMakeRange(prefixSize, data.length - prefixSize)];
|
NSData *packet = [data subdataWithRange:NSMakeRange(prefixSize, data.length - prefixSize)];
|
||||||
#elif TARGET_OS_MAC
|
#else
|
||||||
// Get network protocol from header
|
// Get network protocol from header
|
||||||
uint8_t header = 0;
|
uint8_t header = 0;
|
||||||
[data getBytes:&header length:1];
|
[data getBytes:&header length:1];
|
||||||
|
Loading…
Reference in New Issue
Block a user