aboutsummaryrefslogtreecommitdiff
path: root/xmpp-vala/src/module/xep
diff options
context:
space:
mode:
authorfiaxh <git@mx.ax.lt>2018-02-11 10:34:06 -0600
committerfiaxh <git@mx.ax.lt>2018-02-11 10:57:43 -0600
commit5436d716c0f508eb8ab70f322da862f996ce421e (patch)
treedc63c11139b914a8f4407eb892e9aa8b0776dd1d /xmpp-vala/src/module/xep
parent845f98c1d4d10a8e733157fca2df5498c7d54090 (diff)
downloaddino-5436d716c0f508eb8ab70f322da862f996ce421e.tar.gz
dino-5436d716c0f508eb8ab70f322da862f996ce421e.zip
Use correct host name for TLS when using xmpps
Diffstat (limited to 'xmpp-vala/src/module/xep')
-rw-r--r--xmpp-vala/src/module/xep/0368_srv_records_tls.vala2
1 files changed, 1 insertions, 1 deletions
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) {