rule_default

This commit is contained in:
想当当 2014-09-04 22:41:29 +08:00
parent 4d76d55338
commit a83e9386e6

View File

@ -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;