mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-11 06:59:03 +08:00
feat: Added support for SNI & allowInsecure of Trojan URI
This commit is contained in:
parent
048344268c
commit
bc9fae6062
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "sub-store",
|
||||
"version": "2.14.10",
|
||||
"version": "2.14.11",
|
||||
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
|
||||
"main": "src/main.js",
|
||||
"scripts": {
|
||||
|
@ -75,6 +75,8 @@ export default function URI_Producer() {
|
||||
case 'trojan':
|
||||
result = `trojan://${proxy.password}@${proxy.server}:${
|
||||
proxy.port
|
||||
}?sni=${encodeURIComponent(proxy.sni || proxy.server)}${
|
||||
proxy['skip-cert-verify'] ? '&allowInsecure=1' : ''
|
||||
}#${encodeURIComponent(proxy.name)}`;
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user