TSocketTransport.cs: Fixed a problem with initializing IPAddress
Client: netstd
Patch: Mario Emmenlauer
This closes #2140
diff --git a/lib/netstd/Thrift/Transport/Client/TSocketTransport.cs b/lib/netstd/Thrift/Transport/Client/TSocketTransport.cs
index d559154..612d3da 100644
--- a/lib/netstd/Thrift/Transport/Client/TSocketTransport.cs
+++ b/lib/netstd/Thrift/Transport/Client/TSocketTransport.cs
@@ -58,8 +58,7 @@
if (entry.AddressList.Length == 0)
throw new TTransportException(TTransportException.ExceptionType.Unknown, "unable to resolve host name");
- var addr = entry.AddressList[0];
- Host = new IPAddress(addr.GetAddressBytes(), addr.ScopeId);
+ Host = entry.AddressList[0];
Port = port;
TcpClient = new TcpClient(host, port);