From e30592c050e36a215f03f68b4f7672c4dc5f71e4 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Sat, 11 Jul 2020 17:51:20 +0200 Subject: [PATCH] mod_stun_disco: Fix function specification --- src/mod_stun_disco.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) ->