aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2017-03-16 12:11:16 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-03-16 13:27:52 -0700
commitd115da702b9127ac32a3bbd4c8a99ca961a84eff (patch)
treed940ad43d306111268c2d771da7ebe068cfd6ac9
parent424662da7d9d81e6f4af634424b4b4a8d788e4e8 (diff)
Switch debug_grpc_testlib to bind on localhost
Since there are no multi-machine tests, this is likely preferable from a security standpoint to binding to all interfaces, and sidesteps the question of cross-platform compatibility (some platforms may have IPV6_V6ONLY enabled by default). Change: 150358613
-rw-r--r--tensorflow/core/debug/debug_grpc_testlib.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/core/debug/debug_grpc_testlib.cc b/tensorflow/core/debug/debug_grpc_testlib.cc
index 4d9af10387..15ad081996 100644
--- a/tensorflow/core/debug/debug_grpc_testlib.cc
+++ b/tensorflow/core/debug/debug_grpc_testlib.cc
@@ -68,7 +68,7 @@ GrpcTestServerClientPair::GrpcTestServerClientPair(const int server_port)
}
// Obtain server's gRPC url.
- test_server_url = strings::StrCat("grpc://[::]:", server_port);
+ test_server_url = strings::StrCat("grpc://localhost:", server_port);
// Obtain dump directory for the stream server.
string tmp_dir = port::Tracing::LogDir();