LoginServer should also use the Network.ini configuration file.

This commit is contained in:
MobiusDevelopment
2023-07-12 01:15:21 +03:00
parent 96a579ee4a
commit 900674e177
153 changed files with 2247 additions and 457 deletions

View File

@@ -1074,8 +1074,8 @@ public class Config
public static boolean PACKET_FLOOD_DISCONNECT;
public static boolean PACKET_FLOOD_DROP;
public static boolean PACKET_FLOOD_LOGGED;
public static boolean TCP_NO_DELAY;
public static boolean FAILED_DECRYPTION_LOGGED;
public static boolean TCP_NO_DELAY;
public static int IP_UPDATE_TIME;
public static boolean SHOW_LICENCE;
@@ -1197,8 +1197,8 @@ public class Config
PACKET_FLOOD_DISCONNECT = networkConfig.getBoolean("PacketFloodDisconnect", false);
PACKET_FLOOD_DROP = networkConfig.getBoolean("PacketFloodDrop", false);
PACKET_FLOOD_LOGGED = networkConfig.getBoolean("PacketFloodLogged", true);
TCP_NO_DELAY = networkConfig.getBoolean("TcpNoDelay", true);
FAILED_DECRYPTION_LOGGED = networkConfig.getBoolean("FailedDecryptionLogged", true);
TCP_NO_DELAY = networkConfig.getBoolean("TcpNoDelay", true);
}
public static void loadRatesConfig()

View File

@@ -464,8 +464,8 @@ public class GameServer
server.getNetConfig().setPacketFloodDisconnect(Config.PACKET_FLOOD_DISCONNECT);
server.getNetConfig().setPacketFloodDrop(Config.PACKET_FLOOD_DROP);
server.getNetConfig().setPacketFloodLogged(Config.PACKET_FLOOD_LOGGED);
server.getNetConfig().setTcpNoDelay(Config.TCP_NO_DELAY);
server.getNetConfig().setFailedDecryptionLogged(Config.FAILED_DECRYPTION_LOGGED);
server.getNetConfig().setTcpNoDelay(Config.TCP_NO_DELAY);
server.start();
LoginServerThread.getInstance().start();