feat: redis and valid url
This commit is contained in:
13
src/lib/url.ts
Normal file
13
src/lib/url.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user