Skip 26.5.3 and bump Xray version cutoff

In GetXrayVersions, explicitly ignore the tag "26.5.3" and raise the minimum accepted Xray release from 26.3.10 to 26.4.25. This excludes a specific problematic release and updates the version parsing logic to only include >26 or 26.4.25+ releases.
This commit is contained in:
MHSanaei
2026-05-06 10:13:55 +02:00
parent 09f4f09b84
commit 47163c1418

View File

@@ -555,6 +555,9 @@ func (s *ServerService) GetXrayVersions() ([]string, error) {
var versions []string
for _, release := range releases {
tagVersion := strings.TrimPrefix(release.TagName, "v")
if tagVersion == "26.5.3" {
continue
}
tagParts := strings.Split(tagVersion, ".")
if len(tagParts) != 3 {
continue
@@ -567,7 +570,7 @@ func (s *ServerService) GetXrayVersions() ([]string, error) {
continue
}
if major > 26 || (major == 26 && minor > 3) || (major == 26 && minor == 3 && patch >= 10) {
if major > 26 || (major == 26 && minor > 4) || (major == 26 && minor == 4 && patch >= 25) {
versions = append(versions, release.TagName)
}
}