From f57453aece3e1dc56ce00a29ec6612d33e521c88 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Thu, 27 Apr 2017 11:32:25 +0000 Subject: [PATCH] TCPSocket: add back support for "*" address before r301492, we could specify "*:1234" as an address to lldb-server and it would interpret that as "any". I am not sure that's a good idea, but we have usages of that in the test suite, and without this the remote test suite fails. I'm adding that back, as it does not seem it was an intended side-effect of that change, but I am open to removing it in the future, after discussion and test suite fixup. llvm-svn: 301534 --- lldb/source/Host/common/TCPSocket.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lldb/source/Host/common/TCPSocket.cpp b/lldb/source/Host/common/TCPSocket.cpp index 21830f5..8f6e3b2 100644 --- a/lldb/source/Host/common/TCPSocket.cpp +++ b/lldb/source/Host/common/TCPSocket.cpp @@ -178,6 +178,8 @@ Error TCPSocket::Listen(llvm::StringRef name, int backlog) { if (!DecodeHostAndPort(name, host_str, port_str, port, &error)) return error; + if (host_str == "*") + host_str = "0.0.0.0"; auto addresses = lldb_private::SocketAddress::GetAddressInfo( host_str.c_str(), NULL, AF_UNSPEC, SOCK_STREAM, IPPROTO_TCP); for (auto address : addresses) { -- 2.7.4