diff --git a/backend/src/core/proxy-utils/producers/surge.js b/backend/src/core/proxy-utils/producers/surge.js index dfa262c..01c89e8 100644 --- a/backend/src/core/proxy-utils/producers/surge.js +++ b/backend/src/core/proxy-utils/producers/surge.js @@ -53,7 +53,7 @@ export default function Surge_Producer() { return { produce }; } -function shadowsocks(proxy, includeUnsupportedProxy) { +function shadowsocks(proxy) { const result = new Result(proxy); result.append(`${proxy.name}=${proxy.type},${proxy.server},${proxy.port}`); if (!proxy.cipher) { @@ -87,9 +87,8 @@ function shadowsocks(proxy, includeUnsupportedProxy) { 'chacha20', 'chacha20-ietf', 'none', - ...(includeUnsupportedProxy - ? ['2022-blake3-aes-128-gcm', '2022-blake3-aes-256-gcm'] - : []), + '2022-blake3-aes-128-gcm', + '2022-blake3-aes-256-gcm', ].includes(proxy.cipher) ) { throw new Error(`cipher ${proxy.cipher} is not supported`);