mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-11-23 20:25:51 +01:00
implement per socket send locks, remove useless cipher encryption
cipher encryption is useless, we legit have the source code, someone can just add cheats to the game or hook into where the client decodes / encodes the packets, its just useless performance overhead rn
This commit is contained in:
1 parent
c24978fed8
commit
2af29e050b
21 files changed
+22
-1644
No files matched your search
@@ -15,7 +15,6 @@
|
||||
#include "../Console/ServerCli.h"
|
||||
#include "../Security/SecurityConfig.h"
|
||||
#include "../Security/RateLimiter.h"
|
||||
#include "../Security/IdentityTokenManager.h"
|
||||
#include "../FourKitBridge.h"
|
||||
#include "Tesselator.h"
|
||||
#include "Windows64/4JLibs/inc/4J_Render.h"
|
||||
@@ -448,32 +447,17 @@ int main(int argc, char **argv)
|
||||
secSettings.rateLimitConnectionsPerWindow = serverProperties.rateLimitConnectionsPerWindow;
|
||||
secSettings.rateLimitWindowSeconds = serverProperties.rateLimitWindowSeconds;
|
||||
secSettings.maxPendingConnections = serverProperties.maxPendingConnections;
|
||||
secSettings.requireChallengeToken = serverProperties.requireChallengeToken;
|
||||
secSettings.enableStreamCipher = serverProperties.enableStreamCipher;
|
||||
secSettings.requireSecureClient = serverProperties.requireSecureClient;
|
||||
secSettings.proxyProtocol = serverProperties.proxyProtocol;
|
||||
ServerRuntime::Security::InitializeSettings(secSettings);
|
||||
LogInfof("startup", "Security: hide-player-list=%s, rate-limit=%d/%ds, max-pending=%d, challenge-token=%s, stream-cipher=%s, require-secure-client=%s",
|
||||
LogInfof("startup", "Security: hide-player-list=%s, rate-limit=%d/%ds, max-pending=%d",
|
||||
secSettings.hidePlayerListPreLogin ? "true" : "false",
|
||||
secSettings.rateLimitConnectionsPerWindow,
|
||||
secSettings.rateLimitWindowSeconds,
|
||||
secSettings.maxPendingConnections,
|
||||
secSettings.requireChallengeToken ? "required" : "optional",
|
||||
secSettings.enableStreamCipher ? "enabled" : "disabled",
|
||||
secSettings.requireSecureClient ? "true" : "false");
|
||||
secSettings.maxPendingConnections);
|
||||
if (secSettings.proxyProtocol)
|
||||
{
|
||||
LogInfof("startup", "PROXY protocol: enabled (all connections must send PROXY v1 header)");
|
||||
}
|
||||
if (secSettings.requireSecureClient && !secSettings.enableStreamCipher)
|
||||
{
|
||||
LogInfof("startup", "WARNING: require-secure-client is enabled but enable-stream-cipher is disabled -- secure client enforcement will have no effect");
|
||||
}
|
||||
|
||||
if (secSettings.requireChallengeToken)
|
||||
{
|
||||
ServerRuntime::Security::GetIdentityTokenManager().Initialize("identity-tokens.json");
|
||||
}
|
||||
}
|
||||
|
||||
LogInfof("startup", "LAN advertise: %s", serverProperties.lanAdvertise ? "enabled" : "disabled");
|
||||
|
||||
Reference in new issue
Block a user