Skip to content

Commit

Permalink
reduce superfluous comment
Browse files Browse the repository at this point in the history
  • Loading branch information
cuteist authored and zizifn committed Jun 17, 2023
1 parent e6e5288 commit a9093ef
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/worker-vless.js
Original file line number Diff line number Diff line change
Expand Up @@ -603,15 +603,13 @@ export async function socks5Connect(addressType, addressRemote, portRemote) {
// 0x00 NO AUTHENTICATION REQUIRED
// 0x02 USERNAME/PASSWORD https://datatracker.ietf.org/doc/html/rfc1929
const socksGreeting = new Uint8Array([5, 2, 0, 2]);
// const socksGreeting = new Uint8Array([5, 1, 0]);

const writer = socket.writable.getWriter();

await writer.write(socksGreeting);
console.log('Sent socks greeting');

const reader = socket.readable.getReader();
// const decoder = new TextDecoder();
let res = (await reader.read()).value;
// Response format (Socks Server -> Worker):
// +----+--------+
Expand Down

0 comments on commit a9093ef

Please sign in to comment.