From 05a3c87239cb6154de324f25b02ac2961ba42352 Mon Sep 17 00:00:00 2001 From: Badlop Date: Tue, 28 Apr 2020 11:20:57 +0200 Subject: [PATCH] Document in mod_filter that it requires patching ejabberd (#289) --- mod_filter/README.txt | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/mod_filter/README.txt b/mod_filter/README.txt index a6a45ba..bfbbebb 100644 --- a/mod_filter/README.txt +++ b/mod_filter/README.txt @@ -9,6 +9,33 @@ This module allows the admin to specify packet filtering rules using ACL and ACCESS. + + EJABBERD PATCH + ============== + +Since ejabberd 19.08, it is necessary to apply a small patch to ejabberd +source code in order to use complex access_rules configurations, like the +ones shown in examples 1, 2, 3, 4... + +So, apply this patch your ejabberd source code. +As you can see, it only adds a line. +Then recompile ejabberd, reinstall and restart it: + +diff --git a/src/acl.erl b/src/acl.erl +index d13c05601..c2a72fd9f 100644 +--- a/src/acl.erl ++++ b/src/acl.erl +@@ -310,6 +310,7 @@ access_rules_validator() -> + econf:non_empty( + econf:options( + #{allow => access_validator(), ++ '_' => access_validator(), + deny => access_validator()}, + []))). + +-- + + CONFIGURATION =============