From 41ada4fcc8991ecacd390d92f8ff7829f4e649ff Mon Sep 17 00:00:00 2001 From: fiaxh Date: Mon, 18 Nov 2019 22:45:18 +0100 Subject: Don't attempt DNS SRV lookups in connection fallback --- xmpp-vala/src/core/xmpp_stream.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmpp-vala/src') diff --git a/xmpp-vala/src/core/xmpp_stream.vala b/xmpp-vala/src/core/xmpp_stream.vala index 4bf6e0db..44ecabb4 100644 --- a/xmpp-vala/src/core/xmpp_stream.vala +++ b/xmpp-vala/src/core/xmpp_stream.vala @@ -61,7 +61,7 @@ public class XmppStream { } if (stream == null) { debug("Connecting to %s, xmpp-client, tcp (fallback)", this.remote_name.to_string()); - stream = yield (new SocketClient()).connect_async(new NetworkService("xmpp-client", "tcp", this.remote_name.to_string())); + stream = yield (new SocketClient()).connect_to_host_async(this.remote_name.to_string(), 5222); } if (stream == null) { throw new IOStreamError.CONNECT("client.connect() returned null"); -- cgit v1.2.3-54-g00ecf