summaryrefslogtreecommitdiff
path: root/src/ejabberd_xmlrpc.erl
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2018-04-30 11:52:00 +0300
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2018-04-30 11:52:00 +0300
commit4ea481d1dd68fdfd86201c632ed2de0717d61b14 (patch)
tree630108224190c848332b317f9d0990510afb86b2 /src/ejabberd_xmlrpc.erl
parentUpdate mix.exs version (diff)
Add validator for 'accept_interval' listening option
Diffstat (limited to 'src/ejabberd_xmlrpc.erl')
-rw-r--r--src/ejabberd_xmlrpc.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ejabberd_xmlrpc.erl b/src/ejabberd_xmlrpc.erl
index fb5cbd85..6860f8cd 100644
--- a/src/ejabberd_xmlrpc.erl
+++ b/src/ejabberd_xmlrpc.erl
@@ -585,5 +585,8 @@ listen_opt_type(inet) -> fun(B) when is_boolean(B) -> B end;
listen_opt_type(inet6) -> fun(B) when is_boolean(B) -> B end;
listen_opt_type(backlog) ->
fun(I) when is_integer(I), I>0 -> I end;
+listen_opt_type(accept_interval) ->
+ fun(I) when is_integer(I), I>=0 -> I end;
listen_opt_type(_) ->
- [access_commands, maxsessions, timeout, backlog, inet, inet6].
+ [access_commands, maxsessions, timeout, backlog, inet, inet6,
+ accept_interval].