diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2020-07-11 17:51:20 +0200 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2020-07-11 17:51:20 +0200 |
commit | e30592c050e36a215f03f68b4f7672c4dc5f71e4 (patch) | |
tree | db0e9ff0deb786faba6468a84d28d02b216d7f3a /src/mod_stun_disco.erl | |
parent | Parse 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.erl | 2 |
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) -> |