mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-04-23 15:51:25 +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'))){
|
if(fs.existsSync(path.join(process.cwd(),'rule.js'))){
|
||||||
default_rule = require(path.join(process.cwd(),'rule'));
|
default_rule = require(path.join(process.cwd(),'rule'));
|
||||||
}
|
}
|
||||||
}catch(e){
|
}catch(e){}
|
||||||
if(e){
|
|
||||||
logUtil.printLog("error" + e, logUtil.T_ERR);
|
|
||||||
throw e;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//option
|
//option
|
||||||
//option.type : 'http'(default) or 'https'
|
//option.type : 'http'(default) or 'https'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user