Skip to content
Permalink
Browse files

Merge pull request #713 from xThunderbolt/master

Fix query client connection fails with IPv6
  • Loading branch information
Splamy committed Jan 17, 2020
2 parents cdf0318 + d25fb14 commit 65aa9a18ca5f72f0be9adc6aa93571b9291a9398
Showing with 2 additions and 2 deletions.
  1. +2 −2 TS3Client/Query/Ts3QueryClient.cs
@@ -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;
@@ -50,7 +50,6 @@ public sealed class Ts3QueryClient : Ts3BaseFunctions
public Ts3QueryClient()
{
connecting = false;
tcpClient = new TcpClient();
msgProc = new SyncMessageProcessor(MessageHelper.GetToClientNotificationType);
dispatcher = new ExtraThreadEventDispatcher();
}
@@ -64,6 +63,7 @@ public override void Connect(ConnectionData conData)
{
connecting = true;

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

ConnectionData = conData;

0 comments on commit 65aa9a1

Please sign in to comment.
You can’t perform that action at this time.