mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-07-27 07:45:41 +00:00
try to fix https connection issue
This commit is contained in:
@@ -77,7 +77,7 @@ function checkRootCA(){
|
||||
|
||||
function generateRootCA(){
|
||||
if(isRootCAFileExists()){
|
||||
console.log(color.yellow("rootCA exists at " + certDir));
|
||||
console.log(color.yellow("rootCA exists at " + cmdDir));
|
||||
var rl = readline.createInterface({
|
||||
input: process.stdin,
|
||||
output: process.stdout
|
||||
|
@@ -268,6 +268,7 @@ function connectReqHandler(req, socket, head){
|
||||
callback();
|
||||
}
|
||||
|
||||
|
||||
//connect
|
||||
},function(callback){
|
||||
try{
|
||||
|
@@ -1,6 +1,6 @@
|
||||
module.exports = {
|
||||
summary:function(){
|
||||
return "the default rule for anyproxy, which supports CORS request";
|
||||
return "the default rule for anyproxy, support : CORS / HTTPS(if root cert is ready)";
|
||||
},
|
||||
|
||||
shouldUseLocalResponse : function(req,reqBody){
|
||||
@@ -42,7 +42,7 @@ module.exports = {
|
||||
},
|
||||
|
||||
shouldInterceptHttpsReq :function(req){
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
|
@@ -18,7 +18,6 @@ module.exports.merge = function(baseObj, extendObj){
|
||||
return baseObj;
|
||||
}
|
||||
|
||||
|
||||
module.exports.getUserHome = function(){
|
||||
return process.env.HOME || process.env.HOMEPATH || process.env.USERPROFILE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user