udp_proxy: don't overwrite delayed packets
This commit is contained in:
parent
76fe9e41c1
commit
bf02319b58
1 changed files with 1 additions and 0 deletions
|
@ -365,6 +365,7 @@ int handle_message( const char *way, int dst, int src )
|
|||
strcmp( cur.type, "ChangeCipherSpec" ) == 0 ) ||
|
||||
( opt.delay != 0 &&
|
||||
strcmp( cur.type, "ApplicationData" ) != 0 &&
|
||||
prev.dst == NULL &&
|
||||
rand() % opt.delay == 0 ) )
|
||||
{
|
||||
memcpy( &prev, &cur, sizeof( packet ) );
|
||||
|
|
Loading…
Reference in a new issue