From 5436d716c0f508eb8ab70f322da862f996ce421e Mon Sep 17 00:00:00 2001 From: fiaxh Date: Sun, 11 Feb 2018 10:34:06 -0600 Subject: Use correct host name for TLS when using xmpps --- xmpp-vala/src/module/xep/0368_srv_records_tls.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmpp-vala/src/module') diff --git a/xmpp-vala/src/module/xep/0368_srv_records_tls.vala b/xmpp-vala/src/module/xep/0368_srv_records_tls.vala index 8ec299aa..a98e6769 100644 --- a/xmpp-vala/src/module/xep/0368_srv_records_tls.vala +++ b/xmpp-vala/src/module/xep/0368_srv_records_tls.vala @@ -37,7 +37,7 @@ public class TlsConnectionProvider : ConnectionProvider { SocketClient client = new SocketClient(); try { IOStream? io_stream = yield client.connect_to_host_async(srv_target.get_hostname(), srv_target.get_port()); - io_stream = TlsClientConnection.new(io_stream, new NetworkAddress(srv_target.get_hostname(), srv_target.get_port())); + io_stream = TlsClientConnection.new(io_stream, new NetworkAddress(stream.remote_name.to_string(), srv_target.get_port())); stream.add_flag(new Tls.Flag() { finished=true }); return io_stream; } catch (Error e) { -- cgit v1.2.3-70-g09d2