From 632d9b4d0dd0a3276ea50646504f35620f3e2d1e Mon Sep 17 00:00:00 2001 From: AJ Martinez Date: Thu, 25 Apr 2024 18:02:43 -0700 Subject: [PATCH] More lax + more helpful RRID timestamp errors --- src/d_clisrv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/d_clisrv.c b/src/d_clisrv.c index 586e88d61..a4a778bec 100644 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -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;