summaryrefslogtreecommitdiff
path: root/test/netstd
diff options
context:
space:
mode:
authorJens Geyer <jensg@apache.org>2019-03-12 01:06:25 +0100
committerJens Geyer <jensg@apache.org>2019-03-13 09:09:09 +0100
commit22c412e42d00d84c687725475f7f935953938e5f (patch)
tree81e57348d0d1ac4d69a4631badd9bddc5a125155 /test/netstd
parentdc1b301b311d8865eff2a49fad6343f7302fd9a9 (diff)
downloadthrift-22c412e42d00d84c687725475f7f935953938e5f.tar.gz
THRIFT-4817 Add string CTOR to TTlsSocketTransport
Client: netstd Patch: Jens Geyer This closes #1753
Diffstat (limited to 'test/netstd')
-rw-r--r--test/netstd/Client/TestClient.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/netstd/Client/TestClient.cs b/test/netstd/Client/TestClient.cs
index f48084627..a85312b3d 100644
--- a/test/netstd/Client/TestClient.cs
+++ b/test/netstd/Client/TestClient.cs
@@ -63,7 +63,7 @@ namespace ThriftTest
private class TestParams
{
public int numIterations = 1;
- public IPAddress host = IPAddress.Any;
+ public string host = "localhost";
public int port = 9090;
public int numThreads = 1;
public string url;
@@ -92,7 +92,7 @@ namespace ThriftTest
else if (args[i].StartsWith("--host="))
{
// check there for ipaddress
- host = new IPAddress(Encoding.Unicode.GetBytes(args[i].Substring(args[i].IndexOf("=") + 1)));
+ host = args[i].Substring(args[i].IndexOf("=") + 1);
if (transport != TransportChoice.TlsSocket)
transport = TransportChoice.Socket;
}