mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-12-27 02:29:52 +03:00
Fix that virtual NAT session is closed even if data remains.
This commit is contained in:
parent
dd24472089
commit
f9de4a06aa
@ -5009,7 +5009,7 @@ void PollingNatTcp(VH *v, NAT_ENTRY *n)
|
||||
if (n->TcpFinished)
|
||||
{
|
||||
// Disconnect if all data transmission has completed
|
||||
if (n->SendFifo->size == 0)
|
||||
if (n->SendFifo->size == 0 && n->RecvFifo->size == 0)
|
||||
{
|
||||
n->TcpStatus = NAT_TCP_SEND_RESET;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user