mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-05-10 06:48:26 +00:00
guide to the homepage when there are more info to visit
This commit is contained in:
parent
0241b90e4d
commit
e7732049db
@ -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');
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user