aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mod_stun_disco.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_stun_disco.erl b/src/mod_stun_disco.erl
index 894fca8fe..16c581dc6 100644
--- a/src/mod_stun_disco.erl
+++ b/src/mod_stun_disco.erl
@@ -704,7 +704,7 @@ dedup([H | T]) -> [H | [E || E <- dedup(T), E /= H]].
seconds_to_timestamp(Seconds) ->
{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) ->
[$[, inet_parse:ntoa(Addr), $], $:, integer_to_list(Port)];
addr_to_str({_, _, _, _} = Addr, Port) ->