Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmliuedgetunnel #464

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Next Next commit
update for some unknow reason.
  • Loading branch information
zizifn committed Apr 16, 2024
commit 841ed4e9ff121dde0ed6a56ae800c2e6c4f66056
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Delete code, but keep the project for the sake of memories. I'm only create this project for fun, for try new things and for learn by doing. **I'm even not write any outside marketing post for this project. Just for my own fun...** But I feel emotional damage by the community.",
"main": "index.js",
"scripts": {
"deploy": "wrangler deploy",
"deploy": "wrangler publish",
"dev-vless": "wrangler dev src/worker-vless.js"
},
"author": "",
Expand Down
2 changes: 1 addition & 1 deletion src/worker-vless.js
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ async function handleUDPOutBound(webSocket, vlessResponseHeader, log) {
* @returns {string}
*/
function getVLESSConfig(userID, hostName) {
const vlessMain = `vless://${userID}@${hostName}:443?encryption=none&security=tls&sni=${hostName}&fp=randomized&type=ws&host=${hostName}&path=%2F%3Fed%3D2048#${hostName}`
const vlessMain = `vless://${userID}\u0040${hostName}:443?encryption=none&security=tls&sni=${hostName}&fp=randomized&type=ws&host=${hostName}&path=%2F%3Fed%3D2048#${hostName}`
return `
################################################################
v2ray
Expand Down
6 changes: 3 additions & 3 deletions wrangler.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name = "cf-worker-ws-dev" # todo
name = "cf-worker-ws-dev-0415" # todo
#name = "cf-worker-connect-test" # todo
#main = "test/worker/cf-cdn-cgi-trace2.js"

#main = "test/worker/worker-connect-test.js"
main = "src/worker-vless.js"

compatibility_date = "2023-05-26"
compatibility_date = "2024-04-15"

[vars]
# UUID = "example_dev_token"
# UUID = "example_dev_token"