More lax + more helpful RRID timestamp errors

This commit is contained in:
AJ Martinez 2024-04-25 18:02:43 -07:00
parent 43eb8471e5
commit 632d9b4d0d

View file

@ -256,7 +256,7 @@ shouldsign_t ShouldSignChallenge(uint8_t *message)
memcpy(&claimedIP, message + sizeof(then), sizeof(claimedIP));
realIP = I_GetNodeAddressInt(servernode);
if ((max(now, then) - min(now, then)) > 60*5)
if ((max(now, then) - min(now, then)) > 60*15)
return SIGN_BADTIME;
if (realIP != claimedIP && I_IsExternalAddress(&realIP))
@ -946,7 +946,7 @@ static boolean CL_SendJoin(void)
}
else if (safe == SIGN_BADTIME)
{
I_Error("External server sent a message with an unusual timestamp.\nCheck your clocks!");
I_Error("External server sent a message with an unusual timestamp.\nMake sure your system time is set correctly.");
}
else
{
@ -5328,7 +5328,7 @@ static void HandlePacketFromPlayer(SINT8 node)
if (safe == SIGN_BADIP)
HandleSigfail("External server sent the wrong IP");
else if (safe == SIGN_BADTIME)
HandleSigfail("Bad timestamp - check your clocks");
HandleSigfail("Bad timestamp - is your time set correctly?");
else
HandleSigfail("Unknown auth error - contact a developer");
break;