Commit b23dcd10 authored by Salvador Fandino's avatar Salvador Fandino Committed by Mike Gabriel

merge code paths depending on acceptHost being ""

parent f706d774
...@@ -6629,22 +6629,16 @@ int WaitForRemote(int portNum) ...@@ -6629,22 +6629,16 @@ int WaitForRemote(int portNum)
goto WaitForRemoteError; goto WaitForRemoteError;
} }
} strcpy(hostLabel, "any host");
proxyFD = ListenConnectionTCP( ((loopbackBind || (control->ProxyMode == proxy_server)) ? "localhost" : "*"),
portNum, "NX");
if (*acceptHost != '\0')
{
strcat(hostLabel, "'");
strcat(hostLabel, acceptHost);
strcat(hostLabel, "'");
} }
else else
{ {
strcpy(hostLabel, "any host"); snprintf(hostLabel, sizeof(hostLabel), "'%s'", acceptHost);
} }
proxyFD = ListenConnectionTCP(((loopbackBind || (control->ProxyMode == proxy_server)) ? "localhost" : "*"),
portNum, "NX");
#ifdef TEST #ifdef TEST
*logofs << "Loop: Waiting for connection from " *logofs << "Loop: Waiting for connection from "
<< hostLabel << " on port '" << portNum << hostLabel << " on port '" << portNum
......
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