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
No known key found for this signature in database
GPG key ID: 7E4060F2FBE5AB7A

View file

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