mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-04-23 16:11:26 +00:00
add tcp-ping
This commit is contained in:
parent
344326706e
commit
f6ac9a3228
@ -274,6 +274,7 @@ function connectReqHandler(req, socket, head){
|
|||||||
|
|
||||||
//find port
|
//find port
|
||||||
function(callback){
|
function(callback){
|
||||||
|
|
||||||
if(shouldIntercept){
|
if(shouldIntercept){
|
||||||
//TODO : remote port other than 433
|
//TODO : remote port other than 433
|
||||||
httpsServerMgrInstance.fetchPort(host,userRequestHandler,function(err,port){
|
httpsServerMgrInstance.fetchPort(host,userRequestHandler,function(err,port){
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "anyproxy",
|
"name": "anyproxy",
|
||||||
"version": "2.8.4",
|
"version": "2.8.5",
|
||||||
"description": "A fully configurable proxy in NodeJS, which can handle HTTPS requests perfectly.",
|
"description": "A fully configurable proxy in NodeJS, which can handle HTTPS requests perfectly.",
|
||||||
"main": "proxy.js",
|
"main": "proxy.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
@ -33,7 +33,8 @@
|
|||||||
"socks5-http-client": "^0.1.6",
|
"socks5-http-client": "^0.1.6",
|
||||||
"socks5-https-client": "^0.2.2",
|
"socks5-https-client": "^0.2.2",
|
||||||
"http-proxy-agent":"^0.2.6",
|
"http-proxy-agent":"^0.2.6",
|
||||||
"https-proxy-agent":"^0.3.5"
|
"https-proxy-agent":"^0.3.5",
|
||||||
|
"tcp-ping":"^0.1.1"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type":"git",
|
"type":"git",
|
||||||
|
7
proxy.js
7
proxy.js
@ -10,10 +10,9 @@ try{
|
|||||||
GLOBAL.util['mysql'] = require('mysql');
|
GLOBAL.util['mysql'] = require('mysql');
|
||||||
GLOBAL.util['Socks5ClientHttpAgent'] = require('socks5-http-client/lib/Agent');
|
GLOBAL.util['Socks5ClientHttpAgent'] = require('socks5-http-client/lib/Agent');
|
||||||
GLOBAL.util['Socks5ClientHttpsAgent'] = require('socks5-https-client/lib/Agent');
|
GLOBAL.util['Socks5ClientHttpsAgent'] = require('socks5-https-client/lib/Agent');
|
||||||
GLOBAL.util['HttpProxyAgent'] = require("http-proxy-agent");
|
GLOBAL.util['HttpProxyAgent'] = require('http-proxy-agent');
|
||||||
GLOBAL.util['HttpsProxyAgent'] = require("https-proxy-agent");
|
GLOBAL.util['HttpsProxyAgent'] = require('https-proxy-agent');
|
||||||
|
GLOBAL.util['tcp-ping'] = require('tcp-ping');
|
||||||
|
|
||||||
}catch(e){}
|
}catch(e){}
|
||||||
|
|
||||||
var http = require('http'),
|
var http = require('http'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user