protocol: Don't handle application messages before CLIENT_HELLO

This commit is contained in:
Joshua Scott 2018-04-09 22:09:49 +01:00
parent 1755bda42e
commit e89cdd2ae4
1 changed files with 3 additions and 1 deletions

View File

@ -101,8 +101,10 @@ namespace net
// whether this is a control packet or not
if (header.is_control())
on_control_message(header);
else
else if (m_established)
on_application_message(header);
else
close();
}
void Session::on_control_message(const PacketHeader& header)