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

tcpproxy

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tcpproxy - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

14

index.js

@@ -10,10 +10,10 @@ #!/usr/bin/env node

.version('0.1.0')
.option('-b, --bindAddress <value>', 'Local address where the proxy should be bind, default 127.0.0.1', '127.0.0.1')
.option('-l, --bindPort <n>', 'Local port where the proxy should be bind, default 8080', 8080, parseInt)
.option('-a, --originAddress <value>', 'Address of the origin server, required')
.option('-p, --originPort <n>', 'Port of the origin server, default 80', 80, parseInt)
.option('-d, --delayConnection <n>', 'Delay in millisecond until the connection will be established to the origin server, default 1000ms', 1000, parseInt)
.option('-b, --bindAddress <host>', 'Local address where the proxy should be bind, default 127.0.0.1', '127.0.0.1')
.option('-l, --bindPort <port>', 'Local port where the proxy should be bind, default 8080', 8080, parseInt)
.option('-a, --originAddress <host>', 'Address of the origin server, required')
.option('-p, --originPort <port>', 'Port of the origin server, default 80', 80, parseInt)
.option('-d, --delayConnection <ms>', 'Delay in millisecond until the connection will be established to the origin server, default 1000ms', 1000, parseInt)
.option('--bps, --delayBytesPerSecond <b/ms>', 'Delay bytes per millisecond (bytes/millisecond)')
.option('--delayChunkFromClientToOrigin <n>', 'Delay chunk from client to origin in millisecond', parseInt)
.option('--delayChunkFromOriginToClient <n>', 'Delay chunk from origin to client in millisecond', parseInt)
.option('--delayChunkFromClientToOrigin <ms>', 'Delay chunk from client to origin in millisecond', 0, parseInt)
.option('--delayChunkFromOriginToClient <ms>', 'Delay chunk from origin to client in millisecond', 0, parseInt)
.parse(process.argv);

@@ -20,0 +20,0 @@

{
"name": "tcpproxy",
"description": "TCPproxy which could simple throttle TCP connections",
"version": "0.1.0",
"description": "TCPproxy: Throttle your TCP connections now!",
"version": "0.1.1",
"author": "Christoph Jerolimov",

@@ -6,0 +6,0 @@ "license": "MIT",

@@ -1,22 +0,29 @@

# TCPproxy which could simple throttle TCP connections
## TCPproxy: Throttle your TCP connections now!
npm install -g tcpproxy
$ npm install -g tcpproxy
The default command will delay each TCP connection one second and redirect port 8080 to 80:
tcpproxy -a www.google.com
$ tcpproxy -a www.google.com
Finish transfer! -- Time: 150 ms -- Client: 76 bytes -- Server: 18352 bytes
Finish transfer! -- Time: 160 ms -- Client: 76 bytes -- Server: 18310 bytes
You can throttle the connection with many other options, for example with 10 bytes per 100 milliseconds:
tcpproxy -a www.google.com --bps 10/100
$ tcpproxy -a www.google.com --bps 10/100
Other options:
-b, --bindAddress <value> Local address where the proxy should be bind, default 127.0.0.1
-l, --bindPort <n> Local port where the proxy should be bind, default 8080
-a, --originAddress <value> Address of the origin server, required
-p, --originPort <n> Port of the origin server, default 80
-d, --delayConnection <n> Delay in millisecond until the connection will be established to the origin server, default 1000ms
-b, --bindAddress <host> Local address where the proxy should be bind,
default 127.0.0.1
-l, --bindPort <port> Local port where the proxy should be bind,
default 8080
-a, --originAddress <host> Address of the origin server, required
-p, --originPort <port> Port of the origin server, default 80
-d, --delayConnection <ms> Delay in millisecond until the connection will
be established to the origin server,
default 1000ms
--bps, --delayBytesPerSecond <b/ms> Delay bytes per millisecond (bytes/millisecond)
--delayChunkFromClientToOrigin <n> Delay chunk from client to origin in millisecond
--delayChunkFromOriginToClient <n> Delay chunk from origin to client in millisecond
--delayChunkFromClientToOrigin <ms> Delay chunk from client to origin in millisecond
--delayChunkFromOriginToClient <ms> Delay chunk from origin to client in millisecond
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