Skip to content

Commit

Permalink
New ws-0rtt path
Browse files Browse the repository at this point in the history
  • Loading branch information
Misaka-blog committed Apr 19, 2024
1 parent ee63309 commit b7b20b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions _worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -746,8 +746,8 @@ async function handleUDPOutBound(webSocket, vlessResponseHeader, log) {
* @returns {string}
*/
function getVLESSConfig(userID, hostName) {
const vlessLink = `vless://${userID}\u0040www.gov.se:80?encryption=none&security=none&fp=randomized&type=ws&host=${hostName}&path=%2F%3Fed%3D2048#Misaka-workers`
const vlessTlsLink = `vless://${userID}\u0040www.gov.se:443?encryption=none&security=tls&sni=${hostName}&fp=randomized&type=ws&host=${hostName}&path=%2F%3Fed%3D2048#Misaka-workers-TLS`
const vlessLink = `vless://${userID}\u0040www.gov.se:80?encryption=none&security=none&fp=randomized&type=ws&host=${hostName}&path=%2F%3Fed%3D2560#Misaka-workers`
const vlessTlsLink = `vless://${userID}\u0040www.gov.se:443?encryption=none&security=tls&sni=${hostName}&fp=randomized&type=ws&host=${hostName}&path=%2F%3Fed%3D2560#Misaka-workers-TLS`
return `
下面是非 TLS 端口的节点信息及分享链接,可使用 CF 支持的非 TLS 端口:
Expand All @@ -756,7 +756,7 @@ function getVLESSConfig(userID, hostName) {
UUID:${userID}
传输:ws
伪装域名:${hostName}
路径:/?ed=2048
路径:/?ed=2560
${vlessLink}
Expand All @@ -768,7 +768,7 @@ UUID:${userID}
传输:ws
传输层安全:TLS
伪装域名:${hostName}
路径:/?ed=2048
路径:/?ed=2560
SNI 域名:${hostName}
${vlessTlsLink}
Expand Down

0 comments on commit b7b20b4

Please sign in to comment.