mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-04-23 20:31:25 +00:00
rule_default
This commit is contained in:
parent
4d76d55338
commit
a83e9386e6
2
proxy.js
2
proxy.js
@ -43,7 +43,7 @@ function proxyServer(option){
|
|||||||
proxyType = /https/i.test(option.type || DEFAULT_TYPE) ? T_TYPE_HTTPS : T_TYPE_HTTP ,
|
proxyType = /https/i.test(option.type || DEFAULT_TYPE) ? T_TYPE_HTTPS : T_TYPE_HTTP ,
|
||||||
proxyPort = option.port || DEFAULT_PORT,
|
proxyPort = option.port || DEFAULT_PORT,
|
||||||
proxyHost = option.hostname || DEFAULT_HOST,
|
proxyHost = option.hostname || DEFAULT_HOST,
|
||||||
proxyRules = option.rule;
|
proxyRules = option.rule || require('./lib/rule_default');
|
||||||
|
|
||||||
requestHandler.setRules(proxyRules);
|
requestHandler.setRules(proxyRules);
|
||||||
self.httpProxyServer = null;
|
self.httpProxyServer = null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user