Unverified Commit 8be276d2 authored by Mike Gabriel's avatar Mike Gabriel

Merge branch 'theqvd-fix-loopback-bind' into 3.6.x

parents e466a938 920f423a
...@@ -6692,11 +6692,15 @@ int WaitForRemote(ChannelEndPoint &socketAddress) ...@@ -6692,11 +6692,15 @@ int WaitForRemote(ChannelEndPoint &socketAddress)
strcpy(hostLabel, "any host"); strcpy(hostLabel, "any host");
} }
if (loopbackBind) long bindPort;
if (socketAddress.getTCPHostAndPort(NULL, &bindPort))
{ {
long bindPort; socketAddress.setSpec(loopbackBind ? "localhost" : "*", bindPort);
if (socketAddress.getTCPHostAndPort(NULL, &bindPort)) }
socketAddress.setSpec("localhost", bindPort); else
{
// This should never happen
cerr << "Error" << ": Unable to change bind host\n";
} }
} }
else if (socketAddress.isUnixSocket()) else if (socketAddress.isUnixSocket())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment