mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Force name consistency
Renamed to just 'netconsole' as it was phrased like that throughout other files.
This commit is contained in:
parent
552f5f750c
commit
7ddd33c8de
@ -797,7 +797,7 @@ void CON_Help_f(const CCommand& args)
|
||||
DevMsg(eDLL_T::FS, " = FileSystem (Code)\n");
|
||||
DevMsg(eDLL_T::RTECH, " = PakLoad API (Code)\n");
|
||||
DevMsg(eDLL_T::MS, " = MaterialSystem (Code)\n");
|
||||
DevMsg(eDLL_T::NETCON, " = Net Console (Code)\n");
|
||||
DevMsg(eDLL_T::NETCON, " = NetConsole (Code)\n");
|
||||
}
|
||||
|
||||
#ifndef DEDICATED
|
||||
|
@ -294,7 +294,7 @@ void ConVar_StaticInit(void)
|
||||
sv_rcon_maxignores = ConVar::StaticCreate("sv_rcon_maxignores" , "15", FCVAR_RELEASE, "Max number of times a user can ignore the instruction message before being banned.", true, 1.f, false, 0.f, nullptr, nullptr);
|
||||
sv_rcon_maxsockets = ConVar::StaticCreate("sv_rcon_maxsockets" , "32", FCVAR_RELEASE, "Max number of accepted sockets before the server starts closing redundant sockets.", true, 1.f, true, MAX_PLAYERS, nullptr, nullptr);
|
||||
sv_rcon_maxconnections = ConVar::StaticCreate("sv_rcon_maxconnections" , "1" , FCVAR_RELEASE, "Max number of authenticated connections before the server closes the listen socket.", true, 1.f, true, MAX_PLAYERS, &RCON_ConnectionCountChanged_f, nullptr);
|
||||
sv_rcon_maxpacketsize = ConVar::StaticCreate("sv_rcon_maxpacketsize" , "1024", FCVAR_RELEASE, "Max number of bytes allowed in a command packet from a non-authenticated net console.", true, 0.f, false, 0.f, nullptr, nullptr);
|
||||
sv_rcon_maxpacketsize = ConVar::StaticCreate("sv_rcon_maxpacketsize" , "1024", FCVAR_RELEASE, "Max number of bytes allowed in a command packet from a non-authenticated netconsole.", true, 0.f, false, 0.f, nullptr, nullptr);
|
||||
sv_rcon_whitelist_address = ConVar::StaticCreate("sv_rcon_whitelist_address", "" , FCVAR_RELEASE, "This address is not considered a 'redundant' socket and will never be banned for failed authentication attempts.", false, 0.f, false, 0.f, &RCON_WhiteListAddresChanged_f, "Format: '::ffff:127.0.0.1'");
|
||||
|
||||
sv_quota_stringCmdsPerSecond = ConVar::StaticCreate("sv_quota_stringCmdsPerSecond", "16", FCVAR_RELEASE, "How many string commands per second clients are allowed to submit, 0 to disallow all string commands.", true, 0.f, false, 0.f, nullptr, nullptr);
|
||||
@ -356,7 +356,7 @@ void ConVar_StaticInit(void)
|
||||
con_notify_native_audio_clr = ConVar::StaticCreate("con_notify_native_audio_clr" , "238 43 10 255" , FCVAR_MATERIAL_SYSTEM_THREAD, "Native AudioSystem RUI console overlay log color.", false, 1.f, false, 50.f, nullptr, nullptr);
|
||||
con_notify_native_video_clr = ConVar::StaticCreate("con_notify_native_video_clr" , "115 0 235 255" , FCVAR_MATERIAL_SYSTEM_THREAD, "Native VideoSystem RUI console overlay log color.", false, 1.f, false, 50.f, nullptr, nullptr);
|
||||
|
||||
con_notify_netcon_clr = ConVar::StaticCreate("con_notify_netcon_clr" , "255 255 255 255", FCVAR_MATERIAL_SYSTEM_THREAD, "Net console RUI console overlay log color.", false, 1.f, false, 50.f, nullptr, nullptr);
|
||||
con_notify_netcon_clr = ConVar::StaticCreate("con_notify_netcon_clr" , "255 255 255 255", FCVAR_MATERIAL_SYSTEM_THREAD, "Netconsole RUI console overlay log color.", false, 1.f, false, 50.f, nullptr, nullptr);
|
||||
con_notify_common_clr = ConVar::StaticCreate("con_notify_common_clr" , "255 140 80 255" , FCVAR_MATERIAL_SYSTEM_THREAD, "Common RUI console overlay log color.", false, 1.f, false, 50.f, nullptr, nullptr);
|
||||
|
||||
con_notify_warning_clr = ConVar::StaticCreate("con_notify_warning_clr", "180 180 20 255", FCVAR_MATERIAL_SYSTEM_THREAD, "Warning RUI console overlay log color.", false, 1.f, false, 50.f, nullptr, nullptr);
|
||||
|
@ -37,7 +37,7 @@ public:
|
||||
int m_nIgnoredMessage; // Count how many times client ignored the no-auth message.
|
||||
bool m_bValidated; // Revalidates netconsole if false.
|
||||
bool m_bAuthorized; // Set to true after successful netconsole auth.
|
||||
bool m_bInputOnly; // If set, don't send spew to this net console.
|
||||
bool m_bInputOnly; // If set, don't send spew to this netconsole.
|
||||
vector<uint8_t> m_RecvBuffer;
|
||||
|
||||
CConnectedNetConsoleData(SocketHandle_t hSocket = -1)
|
||||
|
@ -397,7 +397,7 @@ bool CRConServer::ProcessMessage(const char* pMsgBuf, const int nMsgLen)
|
||||
if (!pData->m_bAuthorized &&
|
||||
request.requesttype() != cl_rcon::request_t::SERVERDATA_REQUEST_AUTH)
|
||||
{
|
||||
// Notify net console that authentication is required.
|
||||
// Notify netconsole that authentication is required.
|
||||
SendEncode(pData->m_hSocket, s_NoAuthMessage, "",
|
||||
sv_rcon::response_t::SERVERDATA_RESPONSE_AUTH, static_cast<int>(eDLL_T::NETCON));
|
||||
|
||||
@ -446,7 +446,7 @@ bool CRConServer::ProcessMessage(const char* pMsgBuf, const int nMsgLen)
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose: execute commands issued from net console
|
||||
// Purpose: execute commands issued from netconsole
|
||||
// Input : *request -
|
||||
// bConVar -
|
||||
//-----------------------------------------------------------------------------
|
||||
@ -467,7 +467,7 @@ void CRConServer::Execute(const cl_rcon::request& request, const bool bConVar) c
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose: checks for amount of failed attempts and bans net console accordingly
|
||||
// Purpose: checks for amount of failed attempts and bans netconsole accordingly
|
||||
// Input : *pData -
|
||||
//-----------------------------------------------------------------------------
|
||||
bool CRConServer::CheckForBan(CConnectedNetConsoleData* pData)
|
||||
@ -511,7 +511,7 @@ bool CRConServer::CheckForBan(CConnectedNetConsoleData* pData)
|
||||
return true;
|
||||
}
|
||||
|
||||
// Check if net console has reached maximum number of attempts > add to banned list.
|
||||
// Check if netconsole has reached maximum number of attempts > add to banned list.
|
||||
if (pData->m_nFailedAttempts >= sv_rcon_maxfailures->GetInt()
|
||||
|| pData->m_nIgnoredMessage >= sv_rcon_maxignores->GetInt())
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user