From 3e5f3eafdd907948873ea6c6fafbd20ab75772ab Mon Sep 17 00:00:00 2001 From: xream Date: Tue, 14 Nov 2023 00:57:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=84=9A=E6=9C=AC=E6=93=8D=E4=BD=9C=20?= =?UTF-8?q?ProxyUtils=20=E5=A2=9E=E5=8A=A0=E4=BA=86=20isIPv4,=20isIPv6,=20?= =?UTF-8?q?isIP=20=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/package.json | 2 +- backend/src/core/proxy-utils/index.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/package.json b/backend/package.json index db5c93c..8fef700 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.14.87", + "version": "2.14.88", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.", "main": "src/main.js", "scripts": { diff --git a/backend/src/core/proxy-utils/index.js b/backend/src/core/proxy-utils/index.js index ad2a0c6..4b48c5f 100644 --- a/backend/src/core/proxy-utils/index.js +++ b/backend/src/core/proxy-utils/index.js @@ -183,6 +183,9 @@ export const ProxyUtils = { parse, process, produce, + isIPv4, + isIPv6, + isIP, }; function tryParse(parser, line) {