adding extra logging messages as a delay mechanism so nosteamers netaddress have enough time to be ready
This commit is contained in:
@@ -466,6 +466,15 @@ DETOUR_DECL_MEMBER9(CBaseServer__ConnectClient, IClient*, netadr_t&, address, in
|
||||
|
||||
char ipString[30];
|
||||
V_snprintf(ipString, sizeof(ipString), "%u.%u.%u.%u", address.ip[0], address.ip[1], address.ip[2], address.ip[3]);
|
||||
|
||||
char IpsAllowed[255];
|
||||
V_strncpy(IpsAllowed, g_SvSetSteamIDIPS.GetString(), 255);
|
||||
//you think i am kidding but without this extra log message will ipString end up being empty for nosteamers.
|
||||
//probably because of netadr_t& address not being processed yet as is. So these logging messages add enough delay.
|
||||
smutils->LogMessage(myself, "IpsAllowed: %s. ipString: %s", IpsAllowed, ipString);
|
||||
smutils->LogMessage(myself, "IpsAllowed: %s. ipString: %s", IpsAllowed, ipString);
|
||||
smutils->LogMessage(myself, "IpsAllowed: %s. ipString: %s", IpsAllowed, ipString);
|
||||
|
||||
V_strncpy(passwordBuffer, pchPassword, 255);
|
||||
uint64 ullSteamID = *(uint64 *)pCookie;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user