diff options
Diffstat (limited to 'src/mod_fail2ban.erl')
-rw-r--r-- | src/mod_fail2ban.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_fail2ban.erl b/src/mod_fail2ban.erl index fed106700..f0460e704 100644 --- a/src/mod_fail2ban.erl +++ b/src/mod_fail2ban.erl @@ -167,7 +167,7 @@ code_change(_OldVsn, State, _Extra) -> %%%=================================================================== is_whitelisted(Host, Addr) -> Access = gen_mod:get_module_opt(Host, ?MODULE, access, - fun(A) when is_atom(A) -> A end, + fun(A) -> A end, none), acl:match_rule(Host, Access, Addr) == allow. @@ -187,7 +187,7 @@ format_date({{Year, Month, Day}, {Hour, Minute, Second}}) -> [Hour, Minute, Second, Day, Month, Year]). mod_opt_type(access) -> - fun (A) when is_atom(A) -> A end; + fun acl:access_rules_validator/1; mod_opt_type(c2s_auth_ban_lifetime) -> fun (T) when is_integer(T), T > 0 -> T end; mod_opt_type(c2s_max_auth_failures) -> |