mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-10 00:52:40 +00:00
feat: Added support for SNI & allowInsecure of Trojan URI
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user