diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-09-28 12:24:24 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-09-28 12:24:24 +0300 |
commit | 2732c8f6fcaa2876e5348373985f624a7772cc18 (patch) | |
tree | 7c9b2e08d838763021aca04f954f22f89b584a66 | |
parent | Don't forget to route presence-unavailable (diff) |
Fix function clause introduced by c17ec50e3a
-rw-r--r-- | src/xmpp_stream_out.erl | 6 |
1 files 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), |