fix: encodeURIComponent secret

This commit is contained in:
GyDi
2023-06-29 14:15:57 +08:00
committed by GitHub
parent 7b8d47cdeb
commit 7bc7bc7c49
3 changed files with 6 additions and 3 deletions

View File

@@ -96,7 +96,7 @@ const ConnectionsPage = () => {
if (!clashInfo) return;
const { server = "", secret = "" } = clashInfo;
connect(`ws://${server}/connections?token=${secret}`);
connect(`ws://${server}/connections?token=${encodeURIComponent(secret)}`);
return () => {
disconnect();