1
0
mirror of https://github.com/alibaba/anyproxy.git synced 2025-05-10 14:58:27 +00:00

bugfix for https server

This commit is contained in:
OttoMao 2015-03-20 11:42:54 +08:00
parent 47b769c8e2
commit bdf5e4fabb
3 changed files with 19 additions and 11 deletions

@ -1,4 +1,8 @@
23 Feb 2015: anyproxy 3.2.4:
20 Mar 2015: anyproxy 3.2.5:
* bugfix for internal https server
19 Mar 2015: anyproxy 3.2.4:
* bugfix for absolute rule path

@ -275,22 +275,26 @@ function connectReqHandler(req, socket, head){
internalHttpsPort,
httpsServerMgrInstance;
async.series([
//check if internal https server exists
function(callback){
if(internalHttpsPort){
if(!shouldIntercept){
callback();
return;
}else{
getPort(function(port){
internalHttpsPort = port;
httpsServerMgrInstance = new httpsServerMgr({
port :port,
handler :userRequestHandler
});
if(internalHttpsPort){
callback();
});
}else{
getPort(function(port){
internalHttpsPort = port;
httpsServerMgrInstance = new httpsServerMgr({
port :port,
handler :userRequestHandler
});
callback();
});
}
}
},

@ -1,6 +1,6 @@
{
"name": "anyproxy",
"version": "3.2.4",
"version": "3.2.5",
"description": "A fully configurable proxy in NodeJS, which can handle HTTPS requests perfectly.",
"main": "proxy.js",
"bin": {