This is an automated email from the ASF dual-hosted git repository.
jensg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/thrift.git
The following commit(s) were added to refs/heads/master by this push:
new ad3e440 TSocketTransport.cs: Fixed a problem with initializing
IPAddress Client: netstd Patch: Mario Emmenlauer
ad3e440 is described below
commit ad3e440955c56627da01eb7149a19afe67ce2954
Author: Mario Emmenlauer <[email protected]>
AuthorDate: Tue Apr 7 22:17:19 2020 +0200
TSocketTransport.cs: Fixed a problem with initializing IPAddress
Client: netstd
Patch: Mario Emmenlauer
This closes #2140
---
lib/netstd/Thrift/Transport/Client/TSocketTransport.cs | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
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 @@ namespace Thrift.Transport.Client
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);