mirror of
https://github.com/sochix/TLSharp.git
synced 2026-04-05 14:37:04 +00:00
Fix connection with IPv4 address. A regression introduced in 3224113e4c.
This commit is contained in:
parent
3224113e4c
commit
00330c9bd0
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue