mod_firewall/actions.lib.lua
changeset 2133 26334f4a8eb9
parent 2129 edf5cf3c474b
child 2419 07d7036040ee
equal deleted inserted replaced
2132:21bc4d7cddae 2133:26334f4a8eb9
   156 end
   156 end
   157 
   157 
   158 function action_handlers.LOG(string)
   158 function action_handlers.LOG(string)
   159 	local level = string:match("^%[(%a+)%]") or "info";
   159 	local level = string:match("^%[(%a+)%]") or "info";
   160 	string = string:gsub("^%[%a+%] ?", "");
   160 	string = string:gsub("^%[%a+%] ?", "");
   161 	return meta(("log(%q, %q)"):format(level, string));
   161 	return meta(("(session.log or log)(%q, %q)"):format(level, string));
   162 end
   162 end
   163 
   163 
   164 function action_handlers.RULEDEP(dep)
   164 function action_handlers.RULEDEP(dep)
   165 	return "", { dep };
   165 	return "", { dep };
   166 end
   166 end