Skip to content

Commit

Permalink
Fixed workers error 1101
Browse files Browse the repository at this point in the history
  • Loading branch information
3Kmfi6HP committed Apr 17, 2024
1 parent 391c579 commit 34590b8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions _worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -704,8 +704,8 @@ function getVLESSConfig(userIDs, hostName) {

// Prepare output string for each userID
const output = userIDArray.map((userID) => {
const vlessMain = `vless://${userID}@${hostName}${commonUrlPart}`;
const vlessSec = `vless://${userID}@${proxyIP}${commonUrlPart}`;
const vlessMain = 'vless://' + userID + '@' + hostName + commonUrlPart;
const vlessSec = 'vless://' + userID + '@' + proxyIP + commonUrlPart;
return `<h2>UUID: ${userID}</h2>${hashSeparator}\nv2ray default ip
---------------------------------------------------------------
${vlessMain}
Expand Down Expand Up @@ -839,9 +839,9 @@ function createVLESSSub(userID_Path, hostName) {
const httpConfigurations = Array.from(portSet_http).flatMap((port) => {
if (!hostName.includes('pages.dev')) {
const urlPart = `${hostName}-HTTP-${port}`;
const vlessMainHttp = `vless://${userID}@${hostName}:${port}${commonUrlPart_http}${urlPart}`;
const vlessMainHttps = 'vless://' + userID + '@' + hostName + ':' + port + commonUrlPart_http + urlPart;
return proxyIPs.flatMap((proxyIP) => {
const vlessSecHttp = `vless://${userID}@${proxyIP}:${port}${commonUrlPart_http}${urlPart}-${proxyIP}-EDtunnel`;
const vlessSecHttp = 'vless://' + userID + '@' + proxyIP + ':' + port + commonUrlPart_http + urlPart + '-' + proxyIP + '-EDtunnel';
return [vlessMainHttp, vlessSecHttp];
});
}
Expand All @@ -850,9 +850,9 @@ function createVLESSSub(userID_Path, hostName) {

const httpsConfigurations = Array.from(portSet_https).flatMap((port) => {
const urlPart = `${hostName}-HTTPS-${port}`;
const vlessMainHttps = `vless://${userID}@${hostName}:${port}${commonUrlPart_https}${urlPart}`;
const vlessMainHttps = 'vless://' + userID + '@' + hostName + ':' + port + commonUrlPart_https + urlPart;
return proxyIPs.flatMap((proxyIP) => {
const vlessSecHttps = `vless://${userID}@${proxyIP}:${port}${commonUrlPart_https}${urlPart}-${proxyIP}-EDtunnel`;
const vlessSecHttps = 'vless://' + userID + '@' + proxyIP + ':' + port + commonUrlPart_https + urlPart + '-' + proxyIP + '-EDtunnel';
return [vlessMainHttps, vlessSecHttps];
});
});
Expand Down

0 comments on commit 34590b8

Please sign in to comment.