Software /
code /
prosody-modules
Comparison
mod_firewall/actions.lib.lua @ 958:843795020701
mod_firewall/actions: DROP no longer logs, log messages can be emitted with LOG
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 05 Apr 2013 18:06:10 +0100 |
parent | 957:9b21b91c2d96 |
child | 959:6ef334596276 |
comparison
equal
deleted
inserted
replaced
957:9b21b91c2d96 | 958:843795020701 |
---|---|
50 function action_handlers.PASS() | 50 function action_handlers.PASS() |
51 return "do return end" | 51 return "do return end" |
52 end | 52 end |
53 | 53 |
54 function action_handlers.DROP() | 54 function action_handlers.DROP() |
55 return "log('debug', 'Firewall dropping stanza: %s', tostring(stanza)); return true;"; | 55 return "do return true end"; |
56 end | 56 end |
57 | 57 |
58 function action_handlers.STRIP(tag_desc) | 58 function action_handlers.STRIP(tag_desc) |
59 local code = {}; | 59 local code = {}; |
60 local name, xmlns = tag_desc:match("^(%S+) (.+)$"); | 60 local name, xmlns = tag_desc:match("^(%S+) (.+)$"); |