Files
NwaifuMiniApp/src/lib/url.ts

14 lines
367 B
TypeScript

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;
}