mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-08-01 11:39:01 +00:00
guide to the homepage when there are more info to visit
This commit is contained in:
@@ -85,9 +85,11 @@ crtMgr.trustRootCA = function *() {
|
||||
} else {
|
||||
console.error(result);
|
||||
logUtil.info('Failed to trust the root CA, please trust it manually');
|
||||
util.guideToHomePage();
|
||||
}
|
||||
} else {
|
||||
logUtil.info('Please trust the root CA manually so https interception works');
|
||||
util.guideToHomePage();
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -216,7 +216,7 @@ function deleteFolderContentsRecursive(dirPath, ifClearFolderItself) {
|
||||
throw new Error('can_not_delete_this_dir');
|
||||
}
|
||||
|
||||
console.info('==>>> delete cache ', dirPath);
|
||||
logUtil.info('==>>> clearing cache ', dirPath);
|
||||
|
||||
if (fs.existsSync(dirPath)) {
|
||||
fs.readdirSync(dirPath).forEach((file) => {
|
||||
@@ -324,3 +324,7 @@ module.exports.execScriptSync = function (cmd) {
|
||||
status
|
||||
};
|
||||
};
|
||||
|
||||
module.exports.guideToHomePage = function () {
|
||||
logUtil.info('Refer to http://anyproxy.io for more detail');
|
||||
};
|
||||
|
Reference in New Issue
Block a user