try to fix https connection issue

This commit is contained in:
加里
2014-09-11 14:55:47 +08:00
parent 45433d6e0c
commit 8cb2925dc3
6 changed files with 6 additions and 6 deletions

View File

@@ -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

View File

@@ -268,6 +268,7 @@ function connectReqHandler(req, socket, head){
callback();
}
//connect
},function(callback){
try{

View File

@@ -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;
}
};

View File

@@ -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;
}