From d115da702b9127ac32a3bbd4c8a99ca961a84eff Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Thu, 16 Mar 2017 12:11:16 -0800 Subject: 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 --- tensorflow/core/debug/debug_grpc_testlib.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- cgit v1.2.3