mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-04-23 20:41:27 +00:00
bugfix,
require 'absolute ruleFilePath' instead of 'relative rule option';
This commit is contained in:
parent
d7173b9d4f
commit
9e857463fc
2
bin.js
2
bin.js
@ -37,7 +37,7 @@ if(program.clear){
|
|||||||
var ruleFilePath = path.join(process.cwd(),program.rule);
|
var ruleFilePath = path.join(process.cwd(),program.rule);
|
||||||
try{
|
try{
|
||||||
if(fs.existsSync(ruleFilePath)){
|
if(fs.existsSync(ruleFilePath)){
|
||||||
ruleModule = require(program.rule);
|
ruleModule = require(ruleFilePath);
|
||||||
console.log("rule file loaded :" + ruleFilePath);
|
console.log("rule file loaded :" + ruleFilePath);
|
||||||
}else{
|
}else{
|
||||||
console.log(color.red("can not find rule file"));
|
console.log(color.red("can not find rule file"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user