25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-28 16:34:13 +01:00
This commit is contained in:
Evgeniy Khramtsov 2017-10-25 11:44:53 +03:00
parent debbddb763
commit 5151136d17

View File

@ -869,7 +869,7 @@ resolve(Host, State) ->
-spec srv_lookup(string(), state()) -> {ok, [host_port()]} | network_error().
srv_lookup(_Host, #{xmlns := ?NS_COMPONENT}) ->
%% Do not attempt to lookup SRV for component connections
{{error, nxdomain}, false};
{error, nxdomain};
srv_lookup(Host, State) ->
%% Only perform SRV lookups for FQDN names
case string:chr(Host, $.) of