aboutsummaryrefslogtreecommitdiff
path: root/nxcomp
diff options
context:
space:
mode:
Diffstat (limited to 'nxcomp')
-rw-r--r--nxcomp/Loop.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/nxcomp/Loop.cpp b/nxcomp/Loop.cpp
index aab5c356d..059ac2d93 100644
--- a/nxcomp/Loop.cpp
+++ b/nxcomp/Loop.cpp
@@ -6671,32 +6671,8 @@ int WaitForRemote(int portNum)
tcpAddr.sin_family = AF_INET;
tcpAddr.sin_port = htons(portNum);
- //
- // Quick patch to run on MacOS/X where inet_addr("127.0.0.1")
- // alone seems to fail to return a valid interface. It probably
- // just needs a htonl() or something like that.
- //
- // TODO: We have to give another look at inet_addr("127.0.0.1")
- // on the Mac.
- //
-
- #ifdef __APPLE__
-
- if ( loopbackBind )
- {
- tcpAddr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
- }
- else
- {
- tcpAddr.sin_addr.s_addr = htonl(INADDR_ANY);
- }
-
- #else
-
tcpAddr.sin_addr.s_addr = listenIPAddr;
- #endif
-
if (bind(proxyFD, (sockaddr *) &tcpAddr, sizeof(tcpAddr)) == -1)
{
#ifdef PANIC