From 2732c8f6fcaa2876e5348373985f624a7772cc18 Mon Sep 17 00:00:00 2001 From: Evgeniy Khramtsov Date: Thu, 28 Sep 2017 12:24:24 +0300 Subject: [PATCH] Fix function clause introduced by c17ec50e3a --- src/xmpp_stream_out.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/xmpp_stream_out.erl b/src/xmpp_stream_out.erl index 024fdf63b..982be4dee 100644 --- a/src/xmpp_stream_out.erl +++ b/src/xmpp_stream_out.erl @@ -867,16 +867,16 @@ resolve(Host, State) -> -spec srv_lookup(string(), state()) -> {{ok, [host_port()]} | network_error(), boolean()}. srv_lookup(_Host, #{xmlns := ?NS_COMPONENT}) -> %% Do not attempt to lookup SRV for component connections - {error, nxdomain}; + {{error, nxdomain}, false}; srv_lookup(Host, State) -> %% Only perform SRV lookups for FQDN names case string:chr(Host, $.) of 0 -> - {error, nxdomain}; + {{error, nxdomain}, false}; _ -> case inet:parse_address(Host) of {ok, _} -> - {error, nxdomain}; + {{error, nxdomain}, false}; {error, _} -> Timeout = get_dns_timeout(State), Retries = get_dns_retries(State),