From ec76d3fb319dc59ab5ddde7f7aae6c71df4fe58c Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Wed, 25 Jun 2025 20:04:47 -0400 Subject: [PATCH] Don't allow connecting with an older client I just wasted a few minutes trying to connect, only to realize my client is too old. I thought we declined in these situations already, but I guess not? --- src/bin/kawari-patch.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bin/kawari-patch.rs b/src/bin/kawari-patch.rs index 0462660..6721911 100644 --- a/src/bin/kawari-patch.rs +++ b/src/bin/kawari-patch.rs @@ -119,6 +119,11 @@ async fn verify_session( return StatusCode::INTERNAL_SERVER_ERROR.into_response(); } + if game_version < SUPPORTED_GAME_VERSION { + tracing::warn!("{game_version} is below supported game version {SUPPORTED_GAME_VERSION}!"); + return StatusCode::INTERNAL_SERVER_ERROR.into_response(); + } + // If we are up to date, yay! if game_version == SUPPORTED_GAME_VERSION { let mut headers = HeaderMap::new();