1
Fork 0
mirror of https://github.com/redstrate/Kawari.git synced 2025-06-30 11:47:45 +00:00

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?
This commit is contained in:
Joshua Goins 2025-06-25 20:04:47 -04:00
parent 69e8e4055e
commit ec76d3fb31

View file

@ -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();