aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/igameserverdata.h
diff options
context:
space:
mode:
authorKawe Mazidjatari <48657826+Mauler125@users.noreply.github.com>2022-05-13 21:55:41 +0200
committerKawe Mazidjatari <48657826+Mauler125@users.noreply.github.com>2022-05-13 21:55:41 +0200
commit125266d6a3fad806c3cf54e3ad1fd7af727d4c0c (patch)
treec3d6b09ea7bb7357e6789a0be51a3803c13524c3 /NorthstarDedicatedTest/igameserverdata.h
parent76ed31a29822e40d157792fcbccc604587c3d790 (diff)
downloadNorthstarLauncher-125266d6a3fad806c3cf54e3ad1fd7af727d4c0c.tar.gz
NorthstarLauncher-125266d6a3fad806c3cf54e3ad1fd7af727d4c0c.zip
Optimize RCON
Don't run CheckForBan each iteration if no failed attempts are made
Diffstat (limited to 'NorthstarDedicatedTest/igameserverdata.h')
-rw-r--r--NorthstarDedicatedTest/igameserverdata.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/igameserverdata.h b/NorthstarDedicatedTest/igameserverdata.h
index 678d1e90..9cc6c759 100644
--- a/NorthstarDedicatedTest/igameserverdata.h
+++ b/NorthstarDedicatedTest/igameserverdata.h
@@ -33,6 +33,7 @@ class CConnectedNetConsoleData
SocketHandle_t m_hSocket {};
int m_nCharsInCommandBuffer {};
char m_pszInputCommandBuffer[MAX_NETCONSOLE_INPUT_LEN] {};
+ bool m_bValidated {}; // Revalidates netconsole if false.
bool m_bAuthorized {}; // Set to true after netconsole successfully authed.
bool m_bInputOnly {}; // If set, don't send spew to this net console.
int m_nFailedAttempts {}; // Num failed authentication attempts.