Skip to content

Commit

Permalink
fix vless link and add workers.dev tips
Browse files Browse the repository at this point in the history
  • Loading branch information
Misaka-blog committed Jul 29, 2023
1 parent c5dbb20 commit 5f67755
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion _worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -746,14 +746,16 @@ async function handleUDPOutBound(webSocket, vlessResponseHeader, log) {
* @returns {string}
*/
function getVLESSConfig(userID, hostName) {
const vlessLink = `vless://${userID}@${hostName}:80?security=&fp=randomized&type=ws&path=%2F%3Fed%3D2048&host=${hostName}#${hostName}`
const vlessLink = `vless://${userID}@${hostName}:80?encryption=none&security=none&fp=randomized&type=ws&host=${hostName}&path=%2F%3Fed%3D2048#${hostName}`
const vlessTlsLink = `vless://${userID}@${hostName}:443?encryption=none&security=tls&sni=${hostName}&fp=randomized&type=ws&host=${hostName}&path=%2F%3Fed%3D2048#${hostName}`
return `
下面是非 TLS 端口的节点链接,可使用 CF 支持的非 TLS 端口:
${vlessLink}
下面是 TLS 端口的节点链接,可使用 CF 支持的 TLS 端口:
${vlessTlsLink}
提示:如使用 workers.dev 域名,则无法使用 TLS 端口
---------------------------------------------------------------
更多教程,请关注:小御坂的破站
`;
Expand Down

0 comments on commit 5f67755

Please sign in to comment.