feat: Stash 支持 juicity, ssh

This commit is contained in:
xream 2024-06-12 15:16:56 +08:00
parent ec06eb8659
commit 3ad42f2c10
No known key found for this signature in database
GPG Key ID: 1D2C5225471789F9
8 changed files with 42 additions and 16 deletions

View File

@ -35,7 +35,7 @@ Core functionalities:
- [x] Surfboard (SS, VMess, Trojan, HTTP, SOCKS5, SOCKS5-TLS, WireGuard(Surfboard to Surfboard)) - [x] Surfboard (SS, VMess, Trojan, HTTP, SOCKS5, SOCKS5-TLS, WireGuard(Surfboard to Surfboard))
- [x] Shadowrocket (SS, SSR, VMess, Trojan, HTTP, SOCKS5, Snell, VLESS, WireGuard, Hysteria, Hysteria 2, TUIC) - [x] Shadowrocket (SS, SSR, VMess, Trojan, HTTP, SOCKS5, Snell, VLESS, WireGuard, Hysteria, Hysteria 2, TUIC)
- [x] Clash.Meta (SS, SSR, VMess, Trojan, HTTP, SOCKS5, Snell, VLESS, WireGuard, Hysteria, Hysteria 2, TUIC) - [x] Clash.Meta (SS, SSR, VMess, Trojan, HTTP, SOCKS5, Snell, VLESS, WireGuard, Hysteria, Hysteria 2, TUIC)
- [x] Stash (SS, SSR, VMess, Trojan, HTTP, SOCKS5, Snell, VLESS, WireGuard, Hysteria, TUIC) - [x] Stash (SS, SSR, VMess, Trojan, HTTP, SOCKS5, Snell, VLESS, WireGuard, Hysteria, TUIC, Juicity, SSH)
- [x] Clash (SS, SSR, VMess, Trojan, HTTP, SOCKS5, Snell, VLESS, WireGuard) - [x] Clash (SS, SSR, VMess, Trojan, HTTP, SOCKS5, Snell, VLESS, WireGuard)
### Supported Target Platforms ### Supported Target Platforms

View File

@ -1,6 +1,6 @@
{ {
"name": "sub-store", "name": "sub-store",
"version": "2.14.336", "version": "2.14.337",
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
"main": "src/main.js", "main": "src/main.js",
"scripts": { "scripts": {

View File

@ -338,7 +338,11 @@ function lastParse(proxy) {
proxy.network = 'tcp'; proxy.network = 'tcp';
} }
} }
if (['trojan', 'tuic', 'hysteria', 'hysteria2'].includes(proxy.type)) { if (
['trojan', 'tuic', 'hysteria', 'hysteria2', 'juicity'].includes(
proxy.type,
)
) {
proxy.tls = true; proxy.tls = true;
} }
if (proxy.network) { if (proxy.network) {

View File

@ -133,9 +133,13 @@ export default function Clash_Producer() {
} }
} }
if ( if (
['trojan', 'tuic', 'hysteria', 'hysteria2'].includes( [
proxy.type, 'trojan',
) 'tuic',
'hysteria',
'hysteria2',
'juicity',
].includes(proxy.type)
) { ) {
delete proxy.tls; delete proxy.tls;
} }

View File

@ -149,9 +149,13 @@ export default function ClashMeta_Producer() {
} }
} }
if ( if (
['trojan', 'tuic', 'hysteria', 'hysteria2'].includes( [
proxy.type, 'trojan',
) 'tuic',
'hysteria',
'hysteria2',
'juicity',
].includes(proxy.type)
) { ) {
delete proxy.tls; delete proxy.tls;
} }

View File

@ -152,9 +152,13 @@ export default function ShadowRocket_Producer() {
} }
} }
if ( if (
['trojan', 'tuic', 'hysteria', 'hysteria2'].includes( [
proxy.type, 'trojan',
) 'tuic',
'hysteria',
'hysteria2',
'juicity',
].includes(proxy.type)
) { ) {
delete proxy.tls; delete proxy.tls;
} }

View File

@ -21,6 +21,8 @@ export default function Stash_Producer() {
'wireguard', 'wireguard',
'hysteria', 'hysteria',
'hysteria2', 'hysteria2',
'ssh',
'juicity',
].includes(proxy.type) || ].includes(proxy.type) ||
(proxy.type === 'ss' && (proxy.type === 'ss' &&
![ ![
@ -232,9 +234,13 @@ export default function Stash_Producer() {
} }
} }
if ( if (
['trojan', 'tuic', 'hysteria', 'hysteria2'].includes( [
proxy.type, 'trojan',
) 'tuic',
'hysteria',
'hysteria2',
'juicity',
].includes(proxy.type)
) { ) {
delete proxy.tls; delete proxy.tls;
} }

View File

@ -16,7 +16,11 @@ export default function URI_Producer() {
delete proxy[key]; delete proxy[key];
} }
} }
if (['trojan', 'tuic', 'hysteria', 'hysteria2'].includes(proxy.type)) { if (
['trojan', 'tuic', 'hysteria', 'hysteria2', 'juicity'].includes(
proxy.type,
)
) {
delete proxy.tls; delete proxy.tls;
} }
if (proxy.server && isIPv6(proxy.server)) { if (proxy.server && isIPv6(proxy.server)) {