Not having a good night, thought I removed that code.

This commit is contained in:
md_5 2013-11-03 18:00:30 +11:00
parent 90625bc196
commit 61326db3ee

View File

@ -347,20 +347,6 @@ public class InitialHandler extends PacketHandler implements PendingConnection
{
if ( ch.getHandle().isActive() )
{
if ( onlineMode )
{
// unsafe().sendPacket( new EncryptionResponse( new byte[ 0 ], new byte[ 0 ] ) );
try
{
Cipher encrypt = EncryptionUtil.getCipher( Cipher.ENCRYPT_MODE, sharedKey );
ch.addBefore( PipelineUtils.FRAME_PREPENDER, PipelineUtils.ENCRYPT_HANDLER, new CipherEncoder( encrypt ) );
} catch ( GeneralSecurityException ex )
{
disconnect( "Cipher error: " + Util.exception( ex ) );
}
}
if ( UUID == null )
{
UUID = java.util.UUID.randomUUID().toString();