Skip to content

Commit

Permalink
chore: proxy connect refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
zdm committed Sep 2, 2024
1 parent 6bec225 commit 80b2ab0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion lib/proxy/clients/static.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,6 @@ export default class ProxyClientStatic extends mixins( OptionsCountry, OptionsRe
}

// private
// XXX error on bad auth
async #connectHttp ( { url, connectTimeout, checkCertificate } ) {
return this.#connect(
{
Expand Down
1 change: 1 addition & 0 deletions lib/proxy/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,7 @@ export default class ProxyServer extends net.Server {
// accept auth
clientSocket.write( Buffer.from( [ 0x01, 0x00 ] ) );

// XXX
// reject auth
// clientSocket.write( Buffer.from( [0x01, 0xff] ) );
// return clientSocket.end();
Expand Down

0 comments on commit 80b2ab0

Please sign in to comment.