1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-06 03:50:15 +02:00

Improve misc:uri_parse

This commit is contained in:
Paweł Chmielowski 2022-05-05 13:07:03 +02:00
parent c3d8c3d9c5
commit 54a1fcc5e8
3 changed files with 17 additions and 10 deletions

View file

@ -357,7 +357,7 @@ mod_opt_type(via) ->
(econf:and_then(
econf:url([tls, tcp, udp]),
fun(URI) ->
{ok, Type, Host, Port, _} =
{ok, Type, Host, Port, _, _} =
misc:uri_parse(URI),
{Type, {unicode:characters_to_binary(Host), Port}}
end))(U)