diff --git a/proxy.js b/proxy.js index f4b762b..4387d78 100644 --- a/proxy.js +++ b/proxy.js @@ -43,7 +43,7 @@ function proxyServer(option){ proxyType = /https/i.test(option.type || DEFAULT_TYPE) ? T_TYPE_HTTPS : T_TYPE_HTTP , proxyPort = option.port || DEFAULT_PORT, proxyHost = option.hostname || DEFAULT_HOST, - proxyRules = option.rule; + proxyRules = option.rule || require('./lib/rule_default'); requestHandler.setRules(proxyRules); self.httpProxyServer = null;