New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@sansamour/node-socks

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sansamour/node-socks - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

24

lib/http.js

@@ -98,2 +98,3 @@ var net = require('net'), ips=[], fs = require('fs'), clients = [];

client.server = server;
client.opts = opts;
server.on("end", function(e) {

@@ -143,3 +144,3 @@ console.log("server close");

else
return server.pipe(client);
return client;//server.pipe(client);
}

@@ -174,4 +175,5 @@

if (clientSocket = accept(1)) { //console.log('clientSocket %j',clientSocket)
stream.pipe(clientSocket).pipe(stream)
stream.write(clientSocket.request)

@@ -217,3 +219,3 @@ stream.on('close', function() {

console.log(resp+"")
//this.write(resp);
if(!this.opts.ssh)
this.server.write(resp)

@@ -234,3 +236,3 @@ }

* Method: CONNECT return { method,host,port,httpVersion,auth }
* Method: GET/POST return { method,host,port,path,httpVersion }
* Method: GET/POST return { method,host,port,path,httpVersion,auth }
*/

@@ -252,3 +254,3 @@ function parse_request(buffer) {

auth: ar?atob(ar[1]):''
};
};
}

@@ -262,2 +264,4 @@

var _p = host.split(':', 2);
//detect Authorization
var ar = s.match(/Proxy-Authorization: Basic (.+)[\n\r]/i);
return {

@@ -268,3 +272,4 @@ method: arr[1],

path: arr[2],
httpVersion: arr[3]
httpVersion: arr[3],
auth: ar?atob(ar[1]):''
};

@@ -299,2 +304,7 @@ }

module.exports = {createServer: createServer};
module.exports = {
createServer: createServer,
parse_request: parse_request,
buffer_find_body: buffer_find_body,
buffer_add: buffer_add
};
{
"name": "@sansamour/node-socks",
"version": "1.1.2",
"version": "1.1.3",
"description": "A simple SOCKS/HTTP/HTTPS proxy implementation",

@@ -5,0 +5,0 @@ "author": "Gert Van Gool <gertvangool@gmail.com>",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc