adding extra logging messages as a delay mechanism so nosteamers netaddress have enough time to be ready

This commit is contained in:
2026-08-28 11:07:43 +01:00
parent 5e262c573a
commit 420a56c8c4
+9
View File
@@ -466,6 +466,15 @@ DETOUR_DECL_MEMBER9(CBaseServer__ConnectClient, IClient*, netadr_t&, address, in
char ipString[30]; char ipString[30];
V_snprintf(ipString, sizeof(ipString), "%u.%u.%u.%u", address.ip[0], address.ip[1], address.ip[2], address.ip[3]); 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); V_strncpy(passwordBuffer, pchPassword, 255);
uint64 ullSteamID = *(uint64 *)pCookie; uint64 ullSteamID = *(uint64 *)pCookie;