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:
parent
47b769c8e2
commit
bdf5e4fabb
@ -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
|
* bugfix for absolute rule path
|
||||||
|
|
||||||
|
@ -275,22 +275,26 @@ function connectReqHandler(req, socket, head){
|
|||||||
internalHttpsPort,
|
internalHttpsPort,
|
||||||
httpsServerMgrInstance;
|
httpsServerMgrInstance;
|
||||||
|
|
||||||
|
|
||||||
async.series([
|
async.series([
|
||||||
|
|
||||||
//check if internal https server exists
|
//check if internal https server exists
|
||||||
function(callback){
|
function(callback){
|
||||||
if(internalHttpsPort){
|
if(!shouldIntercept){
|
||||||
callback();
|
callback();
|
||||||
|
return;
|
||||||
}else{
|
}else{
|
||||||
getPort(function(port){
|
if(internalHttpsPort){
|
||||||
internalHttpsPort = port;
|
|
||||||
httpsServerMgrInstance = new httpsServerMgr({
|
|
||||||
port :port,
|
|
||||||
handler :userRequestHandler
|
|
||||||
});
|
|
||||||
callback();
|
callback();
|
||||||
});
|
}else{
|
||||||
|
getPort(function(port){
|
||||||
|
internalHttpsPort = port;
|
||||||
|
httpsServerMgrInstance = new httpsServerMgr({
|
||||||
|
port :port,
|
||||||
|
handler :userRequestHandler
|
||||||
|
});
|
||||||
|
callback();
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "anyproxy",
|
"name": "anyproxy",
|
||||||
"version": "3.2.4",
|
"version": "3.2.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": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user