aboutsummaryrefslogtreecommitdiff
path: root/nxcomp
diff options
context:
space:
mode:
authorSalvador Fandino <sfandino@yahoo.com>2015-06-02 12:34:20 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-07-04 22:57:00 +0200
commitd6edd7c978bfd826988aa99c75d346eaf8d4eac0 (patch)
tree9f944ad2ced0de2e0afb51c5a21748b1389552aa /nxcomp
parentd2e8551efe6b78a429ed400b37ac8f86b81830ef (diff)
downloadnx-libs-d6edd7c978bfd826988aa99c75d346eaf8d4eac0.tar.gz
nx-libs-d6edd7c978bfd826988aa99c75d346eaf8d4eac0.tar.bz2
nx-libs-d6edd7c978bfd826988aa99c75d346eaf8d4eac0.zip
Remove work around for OS/X that was doing nothing
Remove an old work around that's not needed anymore. Tested on OS/X 10.10 for x86.
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