aboutsummaryrefslogtreecommitdiff
path: root/xmpp-vala
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2019-11-18 22:45:18 +0100
committerfiaxh <git@lightrise.org>2019-11-18 22:45:18 +0100
commit41ada4fcc8991ecacd390d92f8ff7829f4e649ff (patch)
tree7d95fc29b829b3622dd931090dc7d9df98ef47c5 /xmpp-vala
parentfcce176b91f5136aac745cc3ab66afa632de8180 (diff)
downloaddino-41ada4fcc8991ecacd390d92f8ff7829f4e649ff.tar.gz
dino-41ada4fcc8991ecacd390d92f8ff7829f4e649ff.zip
Don't attempt DNS SRV lookups in connection fallback
Diffstat (limited to 'xmpp-vala')
-rw-r--r--xmpp-vala/src/core/xmpp_stream.vala2
1 files changed, 1 insertions, 1 deletions
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");