Skip to content

Commit 10fe493

Browse files
committed
feat: Egern shadowsocks+shadow-tls 支持 udp port
1 parent 3f98675 commit 10fe493

2 files changed

Lines changed: 9 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.19.92",
3+
"version": "2.19.93",
44
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.",
55
"main": "src/main.js",
66
"scripts": {

backend/src/core/proxy-utils/producers/egern.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,14 @@ export default function Egern_Producer() {
371371
};
372372
}
373373
}
374+
if (
375+
['ss'].includes(original.type) &&
376+
proxy.shadow_tls &&
377+
original['udp-port'] > 0 &&
378+
original['udp-port'] <= 65535
379+
) {
380+
proxy['udp_port'] = original['udp-port'];
381+
}
374382

375383
delete proxy.subName;
376384
delete proxy.collectionName;

0 commit comments

Comments
 (0)