mirror of
https://github.com/sochix/TLSharp.git
synced 2026-01-05 08:19:57 +01:00
parent
3224113e4c
commit
7a6350d6f3
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue