From 1fe1322bc12552dd6125e4bf96b412fea32607a6 Mon Sep 17 00:00:00 2001 From: Evgeny Khramtsov Date: Mon, 15 Jul 2019 09:59:07 +0300 Subject: Improve some validators --- src/mod_sip.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mod_sip.erl') diff --git a/src/mod_sip.erl b/src/mod_sip.erl index 54d8ac25..a939b17b 100644 --- a/src/mod_sip.erl +++ b/src/mod_sip.erl @@ -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">>, -- cgit v1.2.3