feat: Surfboard 支持 Shadowsocks 2022

This commit is contained in:
xream committed 2026-02-15 10:39:06 +08:00
1 parent 7eeaff45ae
commit 7578e9ed2a
2 files changed
+4 -2

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "sub-store",
"version": "2.21.22",
"version": "2.21.24",
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.",
"main": "src/main.js",
"scripts": {
@@ -85,12 +85,14 @@ function shadowsocks(proxy) {
'salsa20',
'chacha20',
'chacha20-ietf',
'2022-blake3-aes-128-gcm',
'2022-blake3-aes-256-gcm',
].includes(proxy.cipher)
) {
throw new Error(`cipher ${proxy.cipher} is not supported`);
}
result.append(`,encrypt-method=${proxy.cipher}`);
result.appendIfPresent(`,password=${proxy.password}`, 'password');
result.appendIfPresent(`,password="${proxy.password}"`, 'password');
// obfs
if (isPresent(proxy, 'plugin')) {