mirror of
https://github.com/processone/ejabberd.git
synced 2025-01-03 18:02:28 +01:00
mod_stun_disco: Fix function specification
This commit is contained in:
parent
ff92dab49e
commit
e30592c050
@ -704,7 +704,7 @@ dedup([H | T]) -> [H | [E || E <- dedup(T), E /= H]].
|
|||||||
seconds_to_timestamp(Seconds) ->
|
seconds_to_timestamp(Seconds) ->
|
||||||
{Seconds div 1000000, Seconds rem 1000000, 0}.
|
{Seconds div 1000000, Seconds rem 1000000, 0}.
|
||||||
|
|
||||||
-spec addr_to_str(inet:ip_address(), 0..65535) -> string().
|
-spec addr_to_str(inet:ip_address(), 0..65535) -> iolist().
|
||||||
addr_to_str({_, _, _, _, _, _, _, _} = Addr, Port) ->
|
addr_to_str({_, _, _, _, _, _, _, _} = Addr, Port) ->
|
||||||
[$[, inet_parse:ntoa(Addr), $], $:, integer_to_list(Port)];
|
[$[, inet_parse:ntoa(Addr), $], $:, integer_to_list(Port)];
|
||||||
addr_to_str({_, _, _, _} = Addr, Port) ->
|
addr_to_str({_, _, _, _} = Addr, Port) ->
|
||||||
|
Loading…
Reference in New Issue
Block a user