mirror of
https://github.com/TakeV-Lambda/dino.git
synced 2024-11-04 23:07:45 +00:00
Use correct host name for TLS when using xmpps
This commit is contained in:
parent
845f98c1d4
commit
5436d716c0
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue