add new sample for ip binding

This commit is contained in:
加里 2014-11-24 15:52:55 +08:00
parent 488e427b5b
commit 14ccda17f8

View File

@ -0,0 +1,13 @@
//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;
}
};