0.1.1 • Published 10 years ago

nopox v0.1.1

Weekly downloads
5
License
MIT
Repository
github
Last release
10 years ago

A proxy like app for nodejs.

since 0.0.12 its rewritten from scratch without backward compatibility.

It is written for testing purpose only, for simple req response, as transparent proxy

WARNING: port 65001 is for internal use, if you connect to localhost:65001 you will see some statistics

example

var nopox = require('nopox');

var config = {
    "remoteHost":'example.com',
    "remotePort":80,//bind to remote port
    "localPort":8124,//bind to local port
    "listenAddr":'127.0.0.1',//bind to local addr
    "connRetryTimeout":5000,//connect retry timeout(ms), defaults to 30000
    "logger":function(data){console.log(data.toString());},
    "beforeOut":function(data, cb){
        console.log('before out, timeouts 1.5 sec');
        setTimeout(function(){
            cb(data);
        }, 1500);
    },
    "beforeIn":function(data, cb){
        console.log('before in, timeouts 5.5 sec');
        setTimeout(function(){
            cb(data);
        }, 5500);
    }
};
var proxy = nopox(config);
0.1.1

10 years ago

0.1.0

10 years ago

0.0.22

10 years ago

0.0.21

10 years ago

0.0.20

10 years ago

0.0.19

10 years ago

0.0.18

10 years ago

0.0.17

10 years ago

0.0.16

10 years ago

0.0.15

10 years ago

0.0.14

10 years ago

0.0.13

10 years ago

0.0.12

10 years ago

0.0.11

10 years ago

0.0.10

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.3

11 years ago