Software /
code /
prosody-modules
Comparison
mod_firewall/README.markdown @ 4072:2dcbc01c9931
mod_firewall: Fix example in README to use |host (thanks DebXWoody)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 05 Aug 2020 16:38:49 +0100 (2020-08-05) |
parent | 3197:f6a14cdc531b |
child | 4126:68ceb7e0cfe6 |
comparison
equal
deleted
inserted
replaced
4071:8e28d0918abc | 4072:2dcbc01c9931 |
---|---|
634 host Return the host ('domain') part of a JID | 634 host Return the host ('domain') part of a JID |
635 resource Return the resource part of a JID | 635 resource Return the resource part of a JID |
636 | 636 |
637 For example, to apply a rate limit to stanzas per sender domain: | 637 For example, to apply a rate limit to stanzas per sender domain: |
638 | 638 |
639 LIMIT normal on $<@from|domain> | 639 LIMIT normal on $<@from|host> |
640 | 640 |
641 If the path does not match (e.g. the element isn't found, or the attribute doesn't exist) or any of the functions fail to produce an output (e.g. an invalid | 641 If the path does not match (e.g. the element isn't found, or the attribute doesn't exist) or any of the functions fail to produce an output (e.g. an invalid |
642 JID was passed to a function that only handles valid JIDs) the expression will return the text `<undefined>`. You can override this by ending the expression | 642 JID was passed to a function that only handles valid JIDs) the expression will return the text `<undefined>`. You can override this by ending the expression |
643 with a double pipe ('||') followed by a quoted string to use as a default instead. E.g. to default to the string "normal" when there is no 'type' attribute: | 643 with a double pipe ('||') followed by a quoted string to use as a default instead. E.g. to default to the string "normal" when there is no 'type' attribute: |
644 | 644 |