Skip to content

Commit

Permalink
Merge pull request #713 from xThunderbolt/master
Browse files Browse the repository at this point in the history
Fix query client connection fails with IPv6
  • Loading branch information
Splamy authored Jan 17, 2020
2 parents cdf0318 + d25fb14 commit 65aa9a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TS3Client/Query/Ts3QueryClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace TS3Client.Query
public sealed class Ts3QueryClient : Ts3BaseFunctions
{
private readonly object sendQueueLock = new object();
private readonly TcpClient tcpClient;
private TcpClient tcpClient;
private NetworkStream tcpStream;
private StreamReader tcpReader;
private StreamWriter tcpWriter;
Expand All @@ -50,7 +50,6 @@ public sealed class Ts3QueryClient : Ts3BaseFunctions
public Ts3QueryClient()
{
connecting = false;
tcpClient = new TcpClient();
msgProc = new SyncMessageProcessor(MessageHelper.GetToClientNotificationType);
dispatcher = new ExtraThreadEventDispatcher();
}
Expand All @@ -64,6 +63,7 @@ public override void Connect(ConnectionData conData)
{
connecting = true;

tcpClient = new TcpClient(remoteAddress.AddressFamily);
tcpClient.Connect(remoteAddress);

ConnectionData = conData;
Expand Down

0 comments on commit 65aa9a1

Please sign in to comment.