diff options
author | Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> | 2022-05-05 20:26:20 +0200 |
---|---|---|
committer | Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> | 2022-05-05 20:26:20 +0200 |
commit | 54739a3f365b7662c80c2e104af7a3ecc8b80c15 (patch) | |
tree | fd8bdf2a48bfa1ae44828bcb604ea6e98bd572af /NorthstarDedicatedTest/rcon_shared.cpp | |
parent | 7091699fedf0bd1a56526af54256a09652539a74 (diff) | |
download | NorthstarLauncher-54739a3f365b7662c80c2e104af7a3ecc8b80c15.tar.gz NorthstarLauncher-54739a3f365b7662c80c2e104af7a3ecc8b80c15.zip |
Fix clang format
Diffstat (limited to 'NorthstarDedicatedTest/rcon_shared.cpp')
-rw-r--r-- | NorthstarDedicatedTest/rcon_shared.cpp | 65 |
1 files changed, 53 insertions, 12 deletions
diff --git a/NorthstarDedicatedTest/rcon_shared.cpp b/NorthstarDedicatedTest/rcon_shared.cpp index 2b8797d1..bfac496c 100644 --- a/NorthstarDedicatedTest/rcon_shared.cpp +++ b/NorthstarDedicatedTest/rcon_shared.cpp @@ -123,30 +123,71 @@ void InitializeRconSystems(HMODULE baseAddress) { // TODO: RconPasswordChanged_f CVar_rcon_address = new ConVar( - "rcon_address", "::", FCVAR_SERVER_CANNOT_QUERY | FCVAR_DONTRECORD | FCVAR_RELEASE, "Remote server access address.", false, 0.f, - false, 0.f, nullptr); + "rcon_address", + "::", + FCVAR_SERVER_CANNOT_QUERY | FCVAR_DONTRECORD | FCVAR_RELEASE, + "Remote server access address.", + false, + 0.f, + false, + 0.f, + nullptr); CVar_rcon_password = new ConVar( - "rcon_password", "", FCVAR_SERVER_CANNOT_QUERY | FCVAR_DONTRECORD | FCVAR_RELEASE, - "Remote server access password (rcon is disabled if empty).", false, 0.f, false, 0.f, nullptr); + "rcon_password", + "", + FCVAR_SERVER_CANNOT_QUERY | FCVAR_DONTRECORD | FCVAR_RELEASE, + "Remote server access password (rcon is disabled if empty).", + false, + 0.f, + false, + 0.f, + nullptr); CVar_sv_rcon_debug = new ConVar("sv_rcon_debug", "0", FCVAR_RELEASE, "Show rcon debug information ( !slower! ).", false, 0.f, false, 0.f, nullptr); CVar_sv_rcon_maxfailures = new ConVar( - "sv_rcon_maxfailures", "10", FCVAR_RELEASE, "Max number of times a user can fail rcon authentication before being banned.", false, - 0.f, false, 0.f, nullptr); + "sv_rcon_maxfailures", + "10", + FCVAR_RELEASE, + "Max number of times a user can fail rcon authentication before being banned.", + false, + 0.f, + false, + 0.f, + nullptr); CVar_sv_rcon_maxignores = new ConVar( - "sv_rcon_maxignores", "15", FCVAR_RELEASE, "Max number of times a user can ignore the no-auth message before being banned.", false, - 0.f, false, 0.f, nullptr); + "sv_rcon_maxignores", + "15", + FCVAR_RELEASE, + "Max number of times a user can ignore the no-auth message before being banned.", + false, + 0.f, + false, + 0.f, + nullptr); CVar_sv_rcon_maxsockets = new ConVar( - "sv_rcon_maxsockets", "32", FCVAR_RELEASE, "Max number of accepted sockets before the server starts closing redundant sockets.", - false, 0.f, false, 0.f, nullptr); + "sv_rcon_maxsockets", + "32", + FCVAR_RELEASE, + "Max number of accepted sockets before the server starts closing redundant sockets.", + false, + 0.f, + false, + 0.f, + nullptr); CVar_sv_rcon_sendlogs = new ConVar( "sv_rcon_sendlogs", "0", FCVAR_RELEASE, "If enabled, sends conlogs to connected netconsoles.", false, 0.f, false, 0.f, nullptr); CVar_sv_rcon_whitelist_address = new ConVar( - "sv_rcon_whitelist_address", "", FCVAR_RELEASE, + "sv_rcon_whitelist_address", + "", + FCVAR_RELEASE, "This address is not considered a 'redundant' socket and will never be banned for failed authentications. Example: " "'::ffff:127.0.0.1'.", - false, 0.f, false, 0.f, nullptr); + false, + 0.f, + false, + 0.f, + nullptr); RegisterConCommand( "rcon", _RCON_CmdQuery_f, "Forward RCON query to remote server. | Usage: rcon \"<query>\".", FCVAR_CLIENTDLL | FCVAR_RELEASE); |