Commit 0d4113cc authored by Philipp Huebner's avatar Philipp Huebner

New upstream version 1.0.20

parent 0940060a
# Version 1.0.20
* Updating fast_tls to version 1.0.20.
# Version 1.0.19
* Updating fast_tls to version 1.0.19.
# Version 1.0.18
* Updating fast_tls to version 71250ae.
* Fix compilation warnings
# Version 1.0.17
* Updating fast_tls to version 1.0.18.
......
......@@ -22,7 +22,7 @@
{erl_opts, [debug_info, {i, "include"}]}.
{deps, [{fast_tls, ".*", {git, "https://github.com/processone/fast_tls", {tag, "1.0.18"}}},
{deps, [{fast_tls, ".*", {git, "https://github.com/processone/fast_tls", {tag, "1.0.20"}}},
{p1_utils, ".*", {git, "https://github.com/processone/p1_utils", {tag, "1.0.10"}}}]}.
{cover_enabled, true}.
......
......@@ -23,7 +23,7 @@
{application, stun,
[{description, "STUN and TURN library for Erlang / Elixir"},
{vsn, "1.0.17"},
{vsn, "1.0.20"},
{modules, []},
{registered, []},
{applications, [kernel, stdlib, p1_utils]},
......
......@@ -382,9 +382,10 @@ terminate(_Reason, _StateName, State) ->
case State#state.relay_addr of
undefined ->
ok;
RAddrPort ->
_RAddrPort ->
?dbg("deleting TURN allocation for ~s@~s from ~s: ~s",
[Username, Realm, addr_to_str(AddrPort), addr_to_str(RAddrPort)])
[Username, Realm, addr_to_str(_AddrPort),
addr_to_str(_RAddrPort)])
end,
if is_pid(State#state.owner) ->
stun:stop(State#state.owner);
......@@ -467,10 +468,12 @@ format_error({error, Reason}) ->
Res
end.
-ifdef(debug).
addr_to_str({Addr, Port}) ->
[inet_parse:ntoa(Addr), $:, integer_to_list(Port)];
addr_to_str(Addr) ->
inet_parse:ntoa(Addr).
-endif.
cancel_timer(undefined) ->
ok;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment