Fix connection with IPv4 address. A regression introduced in 3224113e4c.
This commit is contained in:
Mike 2019-07-12 02:35:26 +03:00 committed by Afshin Arani
parent 4ea9879f0e
commit be3965a7bb

View file

@ -19,7 +19,7 @@ namespace TLSharp.Core.Network
var ipAddress = IPAddress.Parse(address);
var endpoint = new IPEndPoint(ipAddress, port);
_tcpClient = new TcpClient(endpoint);
_tcpClient = new TcpClient(ipAddress.AddressFamily);
_tcpClient.Connect(endpoint);
}
else