mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Replace concat_binary supported until R14 with list_to_binary supported since R9
This commit is contained in:
parent
002104c62e
commit
4dc48da638
@ -118,7 +118,7 @@ dec_attrs(<<>>, Msg) ->
|
||||
Msg.
|
||||
|
||||
enc_attrs(Msg) ->
|
||||
concat_binary(
|
||||
list_to_binary(
|
||||
[enc_attr(?STUN_ATTR_SOFTWARE, Msg#stun.'SOFTWARE'),
|
||||
enc_addr(?STUN_ATTR_MAPPED_ADDRESS, Msg#stun.'MAPPED-ADDRESS'),
|
||||
enc_xor_addr(?STUN_ATTR_XOR_MAPPED_ADDRESS,
|
||||
@ -230,7 +230,7 @@ enc_unknown_attrs([]) ->
|
||||
<<>>;
|
||||
enc_unknown_attrs(Attrs) ->
|
||||
enc_attr(?STUN_ATTR_UNKNOWN_ATTRIBUTES,
|
||||
concat_binary([<<Attr:16>> || Attr <- Attrs])).
|
||||
list_to_binary([<<Attr:16>> || Attr <- Attrs])).
|
||||
|
||||
%%====================================================================
|
||||
%% Auxiliary functions
|
||||
|
Loading…
Reference in New Issue
Block a user