mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
Don't attempt to resolve _jabber._tcp SRV record
This commit is contained in:
parent
7b8c01da12
commit
60a09285b7
@ -852,16 +852,10 @@ srv_lookup(Host, Timeout, Retries) ->
|
|||||||
case inet_res:getbyname(SRVName, srv, Timeout) of
|
case inet_res:getbyname(SRVName, srv, Timeout) of
|
||||||
{ok, HostEntry} ->
|
{ok, HostEntry} ->
|
||||||
host_entry_to_host_ports(HostEntry);
|
host_entry_to_host_ports(HostEntry);
|
||||||
{error, _} ->
|
|
||||||
LegacySRVName = "_jabber._tcp." ++ Host,
|
|
||||||
case inet_res:getbyname(LegacySRVName, srv, Timeout) of
|
|
||||||
{error, timeout} ->
|
{error, timeout} ->
|
||||||
srv_lookup(Host, Timeout, Retries - 1);
|
srv_lookup(Host, Timeout, Retries - 1);
|
||||||
{error, _} = Err ->
|
{error, _} = Err ->
|
||||||
Err;
|
Err
|
||||||
{ok, HostEntry} ->
|
|
||||||
host_entry_to_host_ports(HostEntry)
|
|
||||||
end
|
|
||||||
end.
|
end.
|
||||||
|
|
||||||
-spec a_lookup([{inet:hostname(), inet:port_number()}], state()) ->
|
-spec a_lookup([{inet:hostname(), inet:port_number()}], state()) ->
|
||||||
|
Loading…
Reference in New Issue
Block a user