mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2026-11-29 07:50:33 +00:00
feat: Stash 支持 Tailscale, 根据请求判断版本号自动开启或使用 includeUnsupportedProxy 参数或开启 包含官方/商店版不支持的协议 开关; 协议过滤支持 Tailscale
This commit is contained in:
7 files changed
+19
-11
No files matched your search
@@ -44,7 +44,7 @@ Core functionalities:
|
||||
- [x] QX (SS, SSR, VMess, Trojan, HTTP, SOCKS5, VLESS)
|
||||
- [x] Loon (SS, SSR, VMess, Trojan, HTTP, SOCKS5, SOCKS5-TLS, WireGuard, VLESS, Hysteria 2, AnyTLS)
|
||||
- [x] Surge (Direct, SS, VMess, Trojan, HTTP, SOCKS5, SOCKS5-TLS, AnyTLS, TrustTunnel, TUIC, Snell, Hysteria 2, SSH(Password authentication only), External Proxy Program(only for macOS), WireGuard(Surge to Surge))
|
||||
- [x] mihomo(Clash.Meta) Compatible (Direct, SS, SSR, VMess, Trojan, HTTP, SOCKS5, Snell, VLESS, WireGuard, Hysteria, Hysteria 2, TUIC, SSH, mieru, sudoku, AnyTLS, MASQUE)
|
||||
- [x] mihomo(Clash.Meta) Compatible (Direct, SS, SSR, VMess, Trojan, HTTP, SOCKS5, Snell, VLESS, WireGuard, Hysteria, Hysteria 2, TUIC, SSH, mieru, sudoku, AnyTLS, MASQUE, Tailscale)
|
||||
|
||||
Deprecated(The frontend doesn't show it, but the backend still supports it, with the query parameter `target=Clash`):
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "sub-store",
|
||||
"version": "2.21.53",
|
||||
"version": "2.21.54",
|
||||
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.",
|
||||
"main": "src/main.js",
|
||||
"scripts": {
|
||||
|
||||
@@ -1266,6 +1266,7 @@ function Clash_All() {
|
||||
}
|
||||
if (
|
||||
![
|
||||
'tailscale',
|
||||
'trusttunnel',
|
||||
'naive',
|
||||
'anytls',
|
||||
|
||||
@@ -16,7 +16,9 @@ export default function ClashMeta_Producer() {
|
||||
if (opts['include-unsupported-proxy']) return true;
|
||||
if (proxy.type === 'snell' && proxy.version >= 4) {
|
||||
return false;
|
||||
} else if (['juicity', 'naive'].includes(proxy.type)) {
|
||||
} else if (
|
||||
['tailscale', 'juicity', 'naive'].includes(proxy.type)
|
||||
) {
|
||||
return false;
|
||||
} else if (
|
||||
['ss'].includes(proxy.type) &&
|
||||
|
||||
@@ -11,6 +11,7 @@ export default function Shadowrocket_Producer() {
|
||||
return false;
|
||||
} else if (
|
||||
[
|
||||
'tailscale',
|
||||
'trusttunnel',
|
||||
'mieru',
|
||||
'sudoku',
|
||||
|
||||
@@ -24,6 +24,9 @@ export default function Stash_Producer() {
|
||||
'ssh',
|
||||
'juicity',
|
||||
'anytls',
|
||||
...(opts['include-unsupported-proxy']
|
||||
? ['tailscale']
|
||||
: []),
|
||||
].includes(proxy.type) ||
|
||||
(proxy.type === 'ss' &&
|
||||
![
|
||||
|
||||
@@ -66,7 +66,8 @@ export function shouldIncludeUnsupportedProxy(platform, headers) {
|
||||
const { UA, ua, accept } = getUserAgentFromHeaders(headers);
|
||||
const target = getPlatformFromUserAgent({ UA, ua, accept });
|
||||
const coerceVersion = coerce(ua);
|
||||
const { major } = coerceVersion;
|
||||
const { major, version } = coerceVersion;
|
||||
|
||||
if (
|
||||
(['SurgeMac', 'Surge'].includes(platform) &&
|
||||
target === 'SurgeMac' &&
|
||||
@@ -82,13 +83,13 @@ export function shouldIncludeUnsupportedProxy(platform, headers) {
|
||||
// ) {
|
||||
// return true;
|
||||
// }
|
||||
// // if (
|
||||
// // platform === 'Stash' &&
|
||||
// // target === 'Stash' &&
|
||||
// // gte(version, '3.1.0')
|
||||
// // ) {
|
||||
// // return true;
|
||||
// // }
|
||||
if (
|
||||
platform === 'Stash' &&
|
||||
target === 'Stash' &&
|
||||
gte(version, '3.3.3')
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// // if (
|
||||
// // platform === 'Loon' &&
|
||||
|
||||
Reference in new issue
Block a user