Skip to content

Commit

Permalink
add uuid into path
Browse files Browse the repository at this point in the history
  • Loading branch information
Emo-Damage committed Jun 4, 2023
1 parent 43cf544 commit 94284ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/worker-vless.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ export default {
switch (url.pathname) {
case '/':
return new Response(JSON.stringify(request.cf), { status: 200 });
case `/${userID}`:
return new Response(`${userID}`, { status: 200 });
default:
return new Response('Not found', { status: 404 });
}
Expand Down Expand Up @@ -251,7 +253,7 @@ function makeReadableWebSocketStream(webSocketServer, earlyDataHeader, log) {

}

// https://github.com/v2ray/v2ray-core/issues/2636
// https://xtls.github.io/development/protocols/vless.html
// https://github.com/zizifn/excalidraw-backup/blob/main/v2ray-protocol.excalidraw

/**
Expand Down

0 comments on commit 94284ad

Please sign in to comment.