mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-13 20:05:55 +08:00
parent
0072739f01
commit
c60aec603f
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "sub-store",
|
"name": "sub-store",
|
||||||
"version": "2.12.7",
|
"version": "2.12.8",
|
||||||
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
|
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
|
||||||
"main": "src/main.js",
|
"main": "src/main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -103,7 +103,7 @@ domain = match:[0-9a-zA-z-_.]+ {
|
|||||||
|
|
||||||
port = digits:[0-9]+ {
|
port = digits:[0-9]+ {
|
||||||
const port = parseInt(digits.join(""), 10);
|
const port = parseInt(digits.join(""), 10);
|
||||||
if (port >= 80 && port <= 65535) {
|
if (port >= 0 && port <= 65535) {
|
||||||
return port;
|
return port;
|
||||||
}
|
}
|
||||||
throw new Error("Invalid port number: " + port);
|
throw new Error("Invalid port number: " + port);
|
||||||
|
@ -128,7 +128,7 @@ ip = & {
|
|||||||
|
|
||||||
port = digits:[0-9]+ {
|
port = digits:[0-9]+ {
|
||||||
const port = parseInt(digits.join(""), 10);
|
const port = parseInt(digits.join(""), 10);
|
||||||
if (port >= 80 && port <= 65535) {
|
if (port >= 0 && port <= 65535) {
|
||||||
return port;
|
return port;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -107,7 +107,7 @@ domain = match:[0-9a-zA-z-_.]+ {
|
|||||||
|
|
||||||
port = digits:[0-9]+ {
|
port = digits:[0-9]+ {
|
||||||
const port = parseInt(digits.join(""), 10);
|
const port = parseInt(digits.join(""), 10);
|
||||||
if (port >= 80 && port <= 65535) {
|
if (port >= 0 && port <= 65535) {
|
||||||
return port;
|
return port;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -70,7 +70,7 @@ ip = & {
|
|||||||
|
|
||||||
port = digits:[0-9]+ {
|
port = digits:[0-9]+ {
|
||||||
const port = parseInt(digits.join(""), 10);
|
const port = parseInt(digits.join(""), 10);
|
||||||
if (port >= 80 && port <= 65535) {
|
if (port >= 0 && port <= 65535) {
|
||||||
return port;
|
return port;
|
||||||
} else {
|
} else {
|
||||||
throw new Error("Invalid port: " + port);
|
throw new Error("Invalid port: " + port);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user