aboutsummaryrefslogtreecommitdiff
path: root/src/mod_stun_disco.erl
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2020-07-11 17:51:20 +0200
committerHolger Weiss <holger@zedat.fu-berlin.de>2020-07-11 17:51:20 +0200
commite30592c050e36a215f03f68b4f7672c4dc5f71e4 (patch)
treedb0e9ff0deb786faba6468a84d28d02b216d7f3a /src/mod_stun_disco.erl
parentParse also ServerHost in create_room* commands (#3326) (diff)
mod_stun_disco: Fix function specification
Diffstat (limited to 'src/mod_stun_disco.erl')
-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) ->