diff --git a/cert/gen-rootCA b/cert/gen-rootCA index da90f2c..bb85bc5 100755 --- a/cert/gen-rootCA +++ b/cert/gen-rootCA @@ -10,4 +10,6 @@ echo "rootCA generated at :" pwd echo "=============" +chmod 666 rootCA.* + exit 0 \ No newline at end of file diff --git a/lib/certMgr.js b/lib/certMgr.js index bef9bb0..7426a2e 100644 --- a/lib/certMgr.js +++ b/lib/certMgr.js @@ -68,7 +68,7 @@ function checkRootCA(){ if(!isRootCAFileExists()){ console.log(color.red("can not find rootCA.crt or rootCA.key")); console.log(color.red("you may generate one by the following methods")); - console.log(color.red("\twhen using globally : anyproxy --root")); + console.log(color.red("\twhen using globally : sudo anyproxy --root")); console.log(color.red("\twhen using as a module : require(\"anyproxy\").generateRootCA();")); process.exit(0); } diff --git a/lib/rule_default.js b/lib/rule_default.js index 17a2c49..b4a527f 100644 --- a/lib/rule_default.js +++ b/lib/rule_default.js @@ -41,7 +41,7 @@ module.exports = { }, shouldInterceptHttpsReq :function(req){ - return true; + return false; } }; diff --git a/package.json b/package.json index 2759455..7003897 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "anyproxy", - "version": "2.3.5", + "version": "2.3.6", "description": "a charles/fiddler like proxy written in NodeJs, which can handle HTTPS requests and CROS perfectly.", "main": "proxy.js", "bin": {