feat: redis and valid url

This commit is contained in:
2025-06-09 11:07:29 +03:00
parent 11c6d538b1
commit f919b6b59a
7 changed files with 87 additions and 21 deletions

13
src/lib/url.ts Normal file
View File

@@ -0,0 +1,13 @@
export function getValidUrl({ email, id }: { email: string; id: string }) {
const obj = {
fp: "chrome",
alpn: "h2,h3",
packetEncoding: "xudp",
security: "tls",
type: "ws",
path: "/myverysecretpath",
};
const params = new URLSearchParams(obj).toString();
const url = `vless://${id}@nwaifu.su:443?${params}#WS-${email}`;
return url;
}