mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-09-10 05:08:04 +02:00
Seems I way overshot it @phanaticd
This commit is contained in:
parent
bc3f63790a
commit
dc18d82bd9
@ -133,7 +133,6 @@ public class Configuration
|
|||||||
*/
|
*/
|
||||||
public String statsUuid = UUID.randomUUID().toString();
|
public String statsUuid = UUID.randomUUID().toString();
|
||||||
public boolean metricsEnabled = true;
|
public boolean metricsEnabled = true;
|
||||||
public int bufferSize = 2048;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load the configuration and save default values.
|
* Load the configuration and save default values.
|
||||||
|
@ -68,7 +68,7 @@ public class InitialHandler implements Runnable
|
|||||||
|
|
||||||
out.write(new PacketFCEncryptionResponse().getPacket());
|
out.write(new PacketFCEncryptionResponse().getPacket());
|
||||||
in = new PacketInputStream(new CipherInputStream(socket.getInputStream(), EncryptionUtil.getCipher(false, shared)));
|
in = new PacketInputStream(new CipherInputStream(socket.getInputStream(), EncryptionUtil.getCipher(false, shared)));
|
||||||
out = new CipherOutputStream(new BufferedOutputStream(socket.getOutputStream(), BungeeCord.instance.config.bufferSize), EncryptionUtil.getCipher(true, shared));
|
out = new CipherOutputStream(socket.getOutputStream(), EncryptionUtil.getCipher(true, shared));
|
||||||
List<byte[]> customPackets = new ArrayList<>();
|
List<byte[]> customPackets = new ArrayList<>();
|
||||||
byte[] custom;
|
byte[] custom;
|
||||||
while (Util.getId((custom = in.readPacket())) != 0xCD)
|
while (Util.getId((custom = in.readPacket())) != 0xCD)
|
||||||
|
@ -66,7 +66,7 @@ public class ServerConnection extends GenericConnection
|
|||||||
out.write(new PacketFAPluginMessage("REGISTER", channel.getBytes()).getPacket());
|
out.write(new PacketFAPluginMessage("REGISTER", channel.getBytes()).getPacket());
|
||||||
}
|
}
|
||||||
|
|
||||||
out = new BufferedOutputStream(out, BungeeCord.instance.config.bufferSize);
|
out = new BufferedOutputStream(out, 64);
|
||||||
|
|
||||||
return new ServerConnection(name, socket, in, out, login);
|
return new ServerConnection(name, socket, in, out, login);
|
||||||
} catch (KickException ex)
|
} catch (KickException ex)
|
||||||
|
Loading…
Reference in New Issue
Block a user