From a1c928692d49b19e671bf03241ace1c64bc91460 Mon Sep 17 00:00:00 2001 From: zizifn <1803942+zizifn@users.noreply.github.com> Date: Fri, 19 May 2023 22:29:54 +0800 Subject: [PATCH] enhance client vless share url --- libs/edge-ui/src/lib/app.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libs/edge-ui/src/lib/app.tsx b/libs/edge-ui/src/lib/app.tsx index 8f9043b..18cac6d 100644 --- a/libs/edge-ui/src/lib/app.tsx +++ b/libs/edge-ui/src/lib/app.tsx @@ -326,11 +326,13 @@ function ShareActions({ } let tls = ''; if (isHttps) { - tls = `&security=tls`; + tls = `&security=tls&fp=randomized&sni=${url.hostname}`; } return `vless://${uuid}@${ url.hostname - }:${port}?encryption=none${tls}&type=ws${pathParam || ''}#${url.hostname}`; + }:${port}?encryption=none${tls}&type=ws&host=${url.hostname}${ + pathParam || '' + }#${url.hostname}`; } return ( @@ -344,7 +346,7 @@ function ShareActions({