Skip to content

Commit

Permalink
fix nodeid return true if the nodeid exists
Browse files Browse the repository at this point in the history
  • Loading branch information
3Kmfi6HP committed Jul 6, 2023
1 parent 9cd2b54 commit b1526a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ function processVlessHeader(
let isUDP = false;
const slicedBuffer = new Uint8Array(vlessBuffer.slice(1, 17));
const slicedBufferString = stringify(slicedBuffer);
const hasValidNodeId = nodeId.length > 1;
const hasValidNodeId = nodeId.length > 0;
if (slicedBufferString === userID || (checkUuidInApiResponse(slicedBufferString) && hasValidNodeId)) {
isValidUser = true;
}
Expand Down

0 comments on commit b1526a6

Please sign in to comment.