Socket
Socket
Sign inDemoInstall

tcp-proxy.js

Package Overview
Dependencies
12
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.1 to 1.2.0

LICENSE

6

History.md
1.2.0 / 2018-06-05
==================
* Added hostname as an optional parameter
* docs: update license
1.1.0 / 2017-09-21

@@ -3,0 +9,0 @@ ==================

6

index.js

@@ -37,2 +37,3 @@ 'use strict';

super();
this.host = options.host;
this.port = options.port;

@@ -42,3 +43,4 @@ this.clients = [];

createProxy({ port, forwardPort, forwardHost, interceptor }) {
createProxy({ host, port, forwardPort, forwardHost, interceptor }) {
const proxyHost = host || this.host;
const proxyPort = port || this.port;

@@ -101,3 +103,3 @@ forwardHost = forwardHost || '127.0.0.1';

})
.listen(proxyPort);
.listen(proxyPort, proxyHost);

@@ -104,0 +106,0 @@ this.server.once('error', e => {

{
"name": "tcp-proxy.js",
"version": "1.1.1",
"version": "1.2.0",
"description": "simple tcp proxy",

@@ -5,0 +5,0 @@ "dependencies": {

@@ -83,1 +83,5 @@ # tcp-proxy.js

```
## License
MIT
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc