mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-07-29 00:59:10 +00:00
remove redundant rule file
This commit is contained in:
@@ -9,9 +9,6 @@ The following are sample rules.
|
||||
* rule_allow_CORS.js
|
||||
* add CORS headers to allow cross-domain ajax request
|
||||
* 为ajax请求增加跨域头
|
||||
* rule_assign_ip_address.js
|
||||
* assign an ip address to a specified domain
|
||||
* 为某个域名指定ip地址
|
||||
* rule_intercept_some_https_requests.js
|
||||
* intercept https requests toward github.com and append some data
|
||||
* 截获github.com的https请求,再在最后加点文字
|
||||
|
@@ -1,13 +0,0 @@
|
||||
//sample : assign 127.0.0.1 to www.taobao.com
|
||||
|
||||
module.exports = {
|
||||
|
||||
replaceRequestOption : function(req,option){
|
||||
if(option.hostname == "www.taobao.com"){
|
||||
option.hostname = "127.0.0.1";
|
||||
}
|
||||
|
||||
return option;
|
||||
}
|
||||
|
||||
};
|
Reference in New Issue
Block a user