Skip to content

Commit

Permalink
feat: Egern 使用 includeUnsupportedProxy 参数开启 Shadowsocks 2022
Browse files Browse the repository at this point in the history
  • Loading branch information
xream committed Jan 11, 2025
1 parent c4a1bb4 commit c963c87
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sub-store",
"version": "2.16.9",
"version": "2.16.10",
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
"main": "src/main.js",
"scripts": {
Expand Down
8 changes: 7 additions & 1 deletion backend/src/core/proxy-utils/producers/egern.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default function Egern_Producer() {
// https://egernapp.com/zh-CN/docs/configuration/proxies
const list = proxies
.filter((proxy) => {
if (opts['include-unsupported-proxy']) return true;
// if (opts['include-unsupported-proxy']) return true;
if (
![
'http',
Expand Down Expand Up @@ -47,6 +47,12 @@ export default function Egern_Producer() {
'salsa20',
'chacha20',
'chacha20-ietf',
...(opts['include-unsupported-proxy']
? [
'2022-blake3-aes-128-gcm',
'2022-blake3-aes-256-gcm',
]
: []),
].includes(proxy.cipher))) ||
(proxy.type === 'vmess' &&
(![
Expand Down

0 comments on commit c963c87

Please sign in to comment.