mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-10 17:49:02 +08:00
fix: 处理 Hysteria2 URI 中的密码部分
This commit is contained in:
parent
d636e1b94c
commit
d0cba285ab
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "sub-store",
|
"name": "sub-store",
|
||||||
"version": "2.14.116",
|
"version": "2.14.117",
|
||||||
"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": {
|
||||||
|
@ -258,11 +258,11 @@ export default function URI_Producer() {
|
|||||||
if (proxy.tfo) {
|
if (proxy.tfo) {
|
||||||
hysteria2params.push(`fastopen=1`);
|
hysteria2params.push(`fastopen=1`);
|
||||||
}
|
}
|
||||||
result = `hysteria2://${proxy.password}@${proxy.server}:${
|
result = `hysteria2://${encodeURIComponent(proxy.password)}@${
|
||||||
proxy.port
|
proxy.server
|
||||||
}?${hysteria2params.join('&')}#${encodeURIComponent(
|
}:${proxy.port}?${hysteria2params.join(
|
||||||
proxy.name,
|
'&',
|
||||||
)}`;
|
)}#${encodeURIComponent(proxy.name)}`;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user