Skip to content

Commit

Permalink
update for some unknow reason.
Browse files Browse the repository at this point in the history
  • Loading branch information
zizifn committed Apr 16, 2024
1 parent 74b5b15 commit 841ed4e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
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"

0 comments on commit 841ed4e

Please sign in to comment.