comparison mod_firewall/definitions.lib.lua @ 2530:84e103fd8039

mod_firewall: Add dummy add/remove methods for HTTP lists
author Matthew Wild <mwild1@gmail.com>
date Mon, 20 Feb 2017 09:47:40 +0000
parents 44a71584521d
children 2ddb74805f91
comparison
equal deleted inserted replaced
2529:3fe4ca2b55c2 2530:84e103fd8039
126 end 126 end
127 end); 127 end);
128 end 128 end
129 update_list(); 129 update_list();
130 end; 130 end;
131 add = function ()
132 end;
133 remove = function ()
134 end;
131 contains = function (self, item) 135 contains = function (self, item)
132 if self.hash_function then 136 if self.hash_function then
133 item = self.hash_function(item); 137 item = self.hash_function(item);
134 end 138 end
135 return self.items and self.items[item] == true; 139 return self.items and self.items[item] == true;