mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-05-22 15:38:26 +00:00
fix a bug when there is an error with rule.js
This commit is contained in:
parent
283ffde6f9
commit
450c72b47b
7
proxy.js
7
proxy.js
@ -49,12 +49,7 @@ try{
|
||||
if(fs.existsSync(path.join(process.cwd(),'rule.js'))){
|
||||
default_rule = require(path.join(process.cwd(),'rule'));
|
||||
}
|
||||
}catch(e){
|
||||
if(e){
|
||||
logUtil.printLog("error" + e, logUtil.T_ERR);
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
}catch(e){}
|
||||
|
||||
//option
|
||||
//option.type : 'http'(default) or 'https'
|
||||
|
Loading…
x
Reference in New Issue
Block a user