Skip to content

Commit

Permalink
vless notls add random path
Browse files Browse the repository at this point in the history
  • Loading branch information
6Kmfi6HP committed Sep 11, 2024
1 parent 65914e4 commit 7d1183f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion _worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,8 @@ const HttpsPort = new Set([443, 8443, 2053, 2096, 2087, 2083]);

function GenSub(ไอดีผู้ใช้_เส้นทาง, ชื่อโฮสต์) {
const อาร์เรย์ไอดีผู้ใช้ = ไอดีผู้ใช้_เส้นทาง.includes(',') ? ไอดีผู้ใช้_เส้นทาง.split(',') : [ไอดีผู้ใช้_เส้นทาง];
const ส่วนUrlทั่วไปHttp = `?encryption=none&security=none&fp=random&type=ws&host=${ชื่อโฮสต์}&path=%2F%3Fed%3D2048#`;
const randomPath = () => '/' + Math.random().toString(36).substring(2, 15)+'?ed=2048';
const ส่วนUrlทั่วไปHttp = `?encryption=none&security=none&fp=random&type=ws&host=${ชื่อโฮสต์}&path=${encodeURIComponent(randomPath())}#`;
const ส่วนUrlทั่วไปHttps = `?encryption=none&security=tls&sni=${ชื่อโฮสต์}&fp=random&type=ws&host=${ชื่อโฮสต์}&path=%2F%3Fed%3D2048#`;

const ผลลัพธ์ = อาร์เรย์ไอดีผู้ใช้.flatMap((ไอดีผู้ใช้) => {
Expand Down

0 comments on commit 7d1183f

Please sign in to comment.