feat: warn when server and client versions differ during connection setup

This commit is contained in:
Stone_Red
2026-07-23 23:06:14 +02:00
committed by HueByte
parent 07996a78ed
commit 7eced63608
4 changed files with 36 additions and 4 deletions
@@ -1,3 +1,4 @@
using System.Reflection;
using System.Security.Claims;
using EchoHub.Core.DTOs;
using EchoHub.Core.Models;
@@ -38,12 +39,15 @@ public class ServerController : ControllerBase
_ => "open",
};
var version = typeof(ServerController).Assembly.GetName().Version?.ToString(3) ?? "0.0.0";
var status = new ServerStatusDto(
_config["Server:Name"] ?? "EchoHub Server",
_config["Server:Description"],
userCount,
channelCount,
registrationMode);
registrationMode,
version);
return Ok(status);
}