Socket
Socket
Sign inDemoInstall

proxy

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

proxy - npm Package Compare versions

Comparing version 2.0.1 to 2.1.0

7

./dist/proxy.js

@@ -187,5 +187,2 @@ "use strict";

}
//if (server.localAddress) {
// parsed.localAddress = server.localAddress;
//}
let gotResponse = false;

@@ -196,2 +193,3 @@ const proxyReq = http.request({

headers,
localAddress: this.localAddress
});

@@ -369,3 +367,4 @@ debug.proxyRequest('%s %s HTTP/1.1 ', proxyReq.method, proxyReq.path);

const port = parseInt(req.url.substring(lastColon + 1), 10);
const opts = { host: host.replace(/^\[|\]$/g, ''), port };
const localAddress = this.localAddress;
const opts = { host: host.replace(/^\[|\]$/g, ''), port, localAddress };
debug.proxyRequest('connecting to proxy target %o', opts);

@@ -372,0 +371,0 @@ const target = net.connect(opts);

@@ -5,2 +5,3 @@ /// <reference types="node" />

authenticate?: (req: http.IncomingMessage) => boolean | Promise<boolean>;
localAddress?: string;
}

@@ -7,0 +8,0 @@ /**

@@ -187,5 +187,2 @@ "use strict";

}
//if (server.localAddress) {
// parsed.localAddress = server.localAddress;
//}
let gotResponse = false;

@@ -196,2 +193,3 @@ const proxyReq = http.request({

headers,
localAddress: this.localAddress
});

@@ -369,3 +367,4 @@ debug.proxyRequest('%s %s HTTP/1.1 ', proxyReq.method, proxyReq.path);

const port = parseInt(req.url.substring(lastColon + 1), 10);
const opts = { host: host.replace(/^\[|\]$/g, ''), port };
const localAddress = this.localAddress;
const opts = { host: host.replace(/^\[|\]$/g, ''), port, localAddress };
debug.proxyRequest('connecting to proxy target %o', opts);

@@ -372,0 +371,0 @@ const target = net.connect(opts);

{
"name": "proxy",
"version": "2.0.1",
"version": "2.1.0",
"description": "An HTTP proxy written with Node.js (think Squid)",

@@ -5,0 +5,0 @@ "main": "./dist/proxy.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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