1
0
Fork 0
mirror of https://codeberg.org/june64/mrvc.git synced 2026-01-10 16:06:33 +01:00

add Tuwunel 1.4.0 with v12 support to max version check

This commit is contained in:
June 2025-09-04 13:12:30 +02:00
commit 17b2de1263
Signed by: june
SSH key fingerprint: SHA256:o9EAq4Y9N9K0pBQeBTqhSDrND5E7oB+60ZNx0U1yPe0

View file

@ -185,11 +185,21 @@ func getMaxRoomVersion(serverVersionInfo fclient.Version) string {
case "Tuwunel":
// https://github.com/matrix-construct/tuwunel
switch {
// v12 support in "v1.4.0".
// https://github.com/matrix-construct/tuwunel/releases/tag/v1.4.0
// "v1.4.0-rc" has v12 support already as well, but should also just return "1.4.0" for its version.
// https://github.com/matrix-construct/tuwunel/commits/v1.4.0
// https://github.com/matrix-construct/tuwunel/commits/v1.4.0-rc
case serverVersion.GreaterThanOrEqual(version.Must(version.NewVersion("1.4.0"))):
return "v12"
default:
// First version named "Tuwunel":
// https://github.com/matrix-construct/tuwunel/commit/9b658d86b2f49d01ba8d2f5ae7f263a104e8f282#diff-d58f31e506570d0bcb7629251ec1b350c5dde4a205a338349f154f3fd3187e93
// v11 support at first version named "Tuwunel":
// https://github.com/matrix-construct/tuwunel/blob/9b658d86b2f49d01ba8d2f5ae7f263a104e8f282/src/core/info/room_version.rs
return "v11"
}
default:
return "unknown"
}