diff --git a/backend/package.json b/backend/package.json index 1890f2f..d1a6679 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.12.7", + "version": "2.12.8", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.", "main": "src/main.js", "scripts": { diff --git a/backend/src/core/proxy-utils/parsers/peggy/loon.peg b/backend/src/core/proxy-utils/parsers/peggy/loon.peg index 43b963f..fe8b82a 100644 --- a/backend/src/core/proxy-utils/parsers/peggy/loon.peg +++ b/backend/src/core/proxy-utils/parsers/peggy/loon.peg @@ -103,7 +103,7 @@ domain = match:[0-9a-zA-z-_.]+ { port = digits:[0-9]+ { const port = parseInt(digits.join(""), 10); - if (port >= 80 && port <= 65535) { + if (port >= 0 && port <= 65535) { return port; } throw new Error("Invalid port number: " + port); diff --git a/backend/src/core/proxy-utils/parsers/peggy/qx.peg b/backend/src/core/proxy-utils/parsers/peggy/qx.peg index 0b4d897..e041184 100644 --- a/backend/src/core/proxy-utils/parsers/peggy/qx.peg +++ b/backend/src/core/proxy-utils/parsers/peggy/qx.peg @@ -128,7 +128,7 @@ ip = & { port = digits:[0-9]+ { const port = parseInt(digits.join(""), 10); - if (port >= 80 && port <= 65535) { + if (port >= 0 && port <= 65535) { return port; } } diff --git a/backend/src/core/proxy-utils/parsers/peggy/surge.peg b/backend/src/core/proxy-utils/parsers/peggy/surge.peg index 9036b5f..a478f71 100644 --- a/backend/src/core/proxy-utils/parsers/peggy/surge.peg +++ b/backend/src/core/proxy-utils/parsers/peggy/surge.peg @@ -107,7 +107,7 @@ domain = match:[0-9a-zA-z-_.]+ { port = digits:[0-9]+ { const port = parseInt(digits.join(""), 10); - if (port >= 80 && port <= 65535) { + if (port >= 0 && port <= 65535) { return port; } } diff --git a/backend/src/core/proxy-utils/parsers/peggy/trojan-uri.peg b/backend/src/core/proxy-utils/parsers/peggy/trojan-uri.peg index b770568..15cb1a0 100644 --- a/backend/src/core/proxy-utils/parsers/peggy/trojan-uri.peg +++ b/backend/src/core/proxy-utils/parsers/peggy/trojan-uri.peg @@ -70,7 +70,7 @@ ip = & { port = digits:[0-9]+ { const port = parseInt(digits.join(""), 10); - if (port >= 80 && port <= 65535) { + if (port >= 0 && port <= 65535) { return port; } else { throw new Error("Invalid port: " + port);