mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
Fix connection with IPv4 address. A regression introduced in 3224113e4c.
This commit is contained in:
parent
3224113e4c
commit
00330c9bd0
|
|
@ -19,7 +19,7 @@ namespace TLSharp.Core.Network
|
||||||
var ipAddress = IPAddress.Parse(address);
|
var ipAddress = IPAddress.Parse(address);
|
||||||
var endpoint = new IPEndPoint(ipAddress, port);
|
var endpoint = new IPEndPoint(ipAddress, port);
|
||||||
|
|
||||||
_tcpClient = new TcpClient(endpoint);
|
_tcpClient = new TcpClient(ipAddress.AddressFamily);
|
||||||
_tcpClient.Connect(endpoint);
|
_tcpClient.Connect(endpoint);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue