Skip to content

Commit 436a631

Browse files
committed
feat: ProxyUtils 新增 hex_md5
1 parent ee6148c commit 436a631

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sub-store",
3-
"version": "2.21.70",
3+
"version": "2.21.71",
44
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.",
55
"main": "src/main.js",
66
"scripts": {

backend/src/core/proxy-utils/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import Gist from '@/utils/gist';
2626
import { isPresent } from './producers/utils';
2727
import { doh } from '@/utils/dns';
2828
import JSON5 from 'json5';
29+
import { hex_md5 } from '@/vendor/md5';
2930

3031
function preprocess(raw) {
3132
for (const processor of PROXY_PREPROCESSORS) {
@@ -351,6 +352,7 @@ export const ProxyUtils = {
351352
Buffer,
352353
Base64,
353354
JSON5,
355+
hex_md5,
354356
};
355357

356358
function tryParse(parser, line) {

scripts/demo.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ function operator(proxies = [], targetPlatform, context) {
188188
// Buffer, // https://github.com/feross/buffer
189189
// Base64, // https://github.com/dankogai/js-base64
190190
// JSON5, // https://github.com/json5/json5
191+
// hex_md5, // backend/src/vendor/md5.js
191192
// }
192193
// 为兼容 https://github.com/xishang0128/sparkle 的 JavaScript 覆写, 也可以直接使用 `b64d`(Base64 解码), `b64e`(Base64 编码), `Buffer`, `yaml`(简单兼容了下 `yaml.parse` 和 `yaml.stringify`)
193194

0 commit comments

Comments
 (0)