浏览代码

fix mistake

mhsanaei 1 月之前
父节点
当前提交
ea19fb8ff6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      web/service/server.go

+ 1 - 1
web/service/server.go

@@ -285,7 +285,7 @@ func (s *ServerService) GetXrayVersions() ([]string, error) {
 			continue
 		}
 
-		if (major >= 25 && minor >= 2 && patch >= 18) || (major >= 26) {
+		if major > 25 || (major == 25 && minor > 2) || (major == 25 && minor == 2 && patch >= 18) {
 			versions = append(versions, release.TagName)
 		}
 	}