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:
parent
c3d8c3d9c5
commit
54a1fcc5e8
3 changed files with 17 additions and 10 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue