diff options
Diffstat (limited to 'deps/npm/node_modules/npm-registry-fetch/node_modules/socks/examples/bind.js')
-rw-r--r-- | deps/npm/node_modules/npm-registry-fetch/node_modules/socks/examples/bind.js | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/deps/npm/node_modules/npm-registry-fetch/node_modules/socks/examples/bind.js b/deps/npm/node_modules/npm-registry-fetch/node_modules/socks/examples/bind.js deleted file mode 100644 index 4410dd1def..0000000000 --- a/deps/npm/node_modules/npm-registry-fetch/node_modules/socks/examples/bind.js +++ /dev/null @@ -1,30 +0,0 @@ -var Socks = require('../index.js'); - -var options = { - proxy: { - ipaddress: "202.101.228.108", - port: 1080, - type: 5, - command: 'bind' - }, - - target: { - host: "0.0.0.0", - port: 0 - } -}; - -Socks.createConnection(options, function(err, socket, info) { - if (err) - console.log(err); - else { - console.log("Connected"); - - // BIND request completed, now a tcp client should connect to this endpoint: - console.log(info); - // { port: 3334, host: '202.101.228.108' } - - // Resume! You need to! - socket.resume(); - } -});
\ No newline at end of file |