25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

Fix: provide the port as an integer, not string (EJAB-560)

SVN Revision: 1562
This commit is contained in:
Badlop 2008-09-12 14:31:04 +00:00
parent e9d62b39ef
commit 81c70c347f

View File

@ -276,11 +276,11 @@ get_transfer_protocol(SockMod, HostPort) ->
{gen_tcp, []} -> {gen_tcp, []} ->
{Host, 80, http}; {Host, 80, http};
{gen_tcp, [Port]} -> {gen_tcp, [Port]} ->
{Host, Port, http}; {Host, list_to_integer(Port), http};
{tls, []} -> {tls, []} ->
{Host, 443, https}; {Host, 443, https};
{tls, [Port]} -> {tls, [Port]} ->
{Host, Port, https} {Host, list_to_integer(Port), https}
end. end.
%% XXX bard: search through request handlers looking for one that %% XXX bard: search through request handlers looking for one that