1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-05 02:29:34 +02:00

Improve some validators

This commit is contained in:
Evgeny Khramtsov 2019-07-15 09:59:07 +03:00
parent cd36bb6eda
commit 1fe1322bc1
3 changed files with 13 additions and 18 deletions

View file

@ -349,7 +349,7 @@ mod_opt_type(via) ->
{Type, {Host, Port}}
end)).
-spec mod_options(binary()) -> [{via, [{tcp | tls | udp, {binary(), 1..65535}}]} |
-spec mod_options(binary()) -> [{via, [{tcp | tls | udp, {binary(), 1..65535 | undefined}}]} |
{atom(), term()}].
mod_options(Host) ->
Route = #uri{scheme = <<"sip">>,