Skip to content

Commit

Permalink
change path to sonzaix
Browse files Browse the repository at this point in the history
  • Loading branch information
SonzaiEkkusu authored Apr 26, 2024
1 parent ba83546 commit 9908c38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ async function handleUDPOutBound(webSocket, vlessResponseHeader, log) {
* @returns {string}
*/
function getVLESSConfig(userIDs, hostName) {
const commonUrlPart = `:443?encryption=none&security=tls&sni=${hostName}&fp=randomized&type=ws&host=${hostName}&path=%2F%3Fed%3D2048#${hostName}`;
const commonUrlPart = `:443?encryption=none&security=tls&sni=${hostName}&fp=randomized&type=ws&host=${hostName}&path=%2Fsonzaix#${hostName}`;
const hashSeparator = "################################################################";

// Split the userIDs into an array
Expand Down Expand Up @@ -832,8 +832,8 @@ const portSet_https = new Set([443, 8443, 2053, 2096, 2087, 2083]);

function createVLESSSub(userID_Path, hostName) {
const userIDArray = userID_Path.includes(',') ? userID_Path.split(',') : [userID_Path];
const commonUrlPart_http = `?encryption=none&security=none&fp=random&type=ws&host=${hostName}&path=%2F%3Fed%3D2048#`;
const commonUrlPart_https = `?encryption=none&security=tls&sni=${hostName}&fp=random&type=ws&host=${hostName}&path=%2F%3Fed%3D2048#`;
const commonUrlPart_http = `?encryption=none&security=none&fp=random&type=ws&host=${hostName}&path=%2Fsonzaix#`;
const commonUrlPart_https = `?encryption=none&security=tls&sni=${hostName}&fp=random&type=ws&host=${hostName}&path=%2Fsonzaix#`;

const output = userIDArray.flatMap((userID) => {
const httpConfigurations = Array.from(portSet_http).flatMap((port) => {
Expand Down

0 comments on commit 9908c38

Please sign in to comment.