mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2026-12-01 17:03:04 +00:00
feat: Loon Shadowsocks 2022 不支持 obfs
This commit is contained in:
3 files changed
+9
-14
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "sub-store",
|
||||
"version": "2.20.27",
|
||||
"version": "2.20.28",
|
||||
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.",
|
||||
"main": "src/main.js",
|
||||
"scripts": {
|
||||
@@ -53,7 +53,6 @@
|
||||
"@babel/preset-env": "^7.18.0",
|
||||
"@babel/register": "^7.17.7",
|
||||
"@types/gulp": "^4.0.9",
|
||||
"axios": "^0.21.2",
|
||||
"babel-plugin-relative-path-import": "^2.0.1",
|
||||
"babelify": "^10.0.0",
|
||||
"browser-pack-flat": "^3.4.2",
|
||||
|
||||
Generated
-12
@@ -98,9 +98,6 @@ importers:
|
||||
'@types/gulp':
|
||||
specifier: ^4.0.9
|
||||
version: 4.0.17
|
||||
axios:
|
||||
specifier: ^0.21.2
|
||||
version: 0.21.4
|
||||
babel-plugin-relative-path-import:
|
||||
specifier: ^2.0.1
|
||||
version: 2.0.1
|
||||
@@ -1129,9 +1126,6 @@ packages:
|
||||
resolution: {integrity: sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==}
|
||||
engines: {node: '>= 0.4'}
|
||||
|
||||
axios@0.21.4:
|
||||
resolution: {integrity: sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==}
|
||||
|
||||
b4a@1.6.7:
|
||||
resolution: {integrity: sha512-OnAYlL5b7LEkALw87fUVafQw5rVR9RjwGd4KUwNQ6DrrNmaVaUCgLipfVlzrPQ4tWOR9P0IXGNOx50jYCCdSJg==}
|
||||
|
||||
@@ -5340,12 +5334,6 @@ snapshots:
|
||||
dependencies:
|
||||
possible-typed-array-names: 1.0.0
|
||||
|
||||
axios@0.21.4:
|
||||
dependencies:
|
||||
follow-redirects: 1.15.9(debug@4.4.0)
|
||||
transitivePeerDependencies:
|
||||
- debug
|
||||
|
||||
b4a@1.6.7: {}
|
||||
|
||||
babel-plugin-polyfill-corejs2@0.4.12(@babel/core@7.26.0):
|
||||
|
||||
@@ -77,6 +77,14 @@ function shadowsocks(proxy) {
|
||||
// obfs
|
||||
if (isPresent(proxy, 'plugin')) {
|
||||
if (proxy.plugin === 'obfs') {
|
||||
if (
|
||||
proxy['plugin-opts']?.mode &&
|
||||
proxy.cipher.startsWith('2022-')
|
||||
) {
|
||||
throw new Error(
|
||||
`${proxy.cipher} ${proxy.plugin} is not supported`,
|
||||
);
|
||||
}
|
||||
result.append(`,obfs-name=${proxy['plugin-opts'].mode}`);
|
||||
result.appendIfPresent(
|
||||
`,obfs-host=${proxy['plugin-opts'].host}`,
|
||||
|
||||
Reference in new issue
Block a user