1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-22 17:39:53 +03:00

Merge pull request #1063 from dnobori/200101_fix_securenat_ecn

Merge pull request #1063: Bugfix: Fix the SecureNAT connection problem with ignoring TCP ECN bit enabled packets
This commit is contained in:
Ilya Shipitsin 2020-01-01 16:40:47 +05:00 committed by GitHub
commit 1a5a11d146
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1446,7 +1446,7 @@ void NnTcpRecvForInternet(VH *v, UINT src_ip, UINT src_port, UINT dest_ip, UINT
// Create a new session because there is no existing one // Create a new session because there is no existing one
UINT public_port; UINT public_port;
if (old_tcp->Flag != TCP_SYN) if (((old_tcp->Flag & TCP_SYN) && ((old_tcp->Flag & TCP_ACK) == 0)) == false)
{ {
// If there is no existing session, pass through only for SYN packet // If there is no existing session, pass through only for SYN packet
return; return;