aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSalvador Fandino <sfandino@yahoo.com>2015-06-02 12:54:15 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-07-04 22:57:00 +0200
commit28736a8886b8c611ccf6098766b47f49ef9757b9 (patch)
treefcbd108117a98166da708f94665a108a26434f1f
parentd6edd7c978bfd826988aa99c75d346eaf8d4eac0 (diff)
downloadnx-libs-28736a8886b8c611ccf6098766b47f49ef9757b9.tar.gz
nx-libs-28736a8886b8c611ccf6098766b47f49ef9757b9.tar.bz2
nx-libs-28736a8886b8c611ccf6098766b47f49ef9757b9.zip
remove unused listenHost parameter
-rw-r--r--nxcomp/Loop.cpp22
1 files changed, 3 insertions, 19 deletions
diff --git a/nxcomp/Loop.cpp b/nxcomp/Loop.cpp
index 059ac2d93..6dc544fe5 100644
--- a/nxcomp/Loop.cpp
+++ b/nxcomp/Loop.cpp
@@ -954,7 +954,6 @@ static char unixSocketName[DEFAULT_STRING_LENGTH] = { 0 };
static char connectHost[DEFAULT_STRING_LENGTH] = { 0 };
static char acceptHost[DEFAULT_STRING_LENGTH] = { 0 };
-static char listenHost[DEFAULT_STRING_LENGTH] = { 0 };
static char displayHost[DEFAULT_STRING_LENGTH] = { 0 };
static char authCookie[DEFAULT_STRING_LENGTH] = { 0 };
@@ -5456,7 +5455,6 @@ void CleanupLocal()
*connectHost = '\0';
*acceptHost = '\0';
- *listenHost = '\0';
*displayHost = '\0';
*authCookie = '\0';
@@ -13539,27 +13537,13 @@ ParseFontPathError:
int ParseListenOption(int &address)
{
- if (*listenHost == '\0')
- {
- //
- // On the X client side listen on any address.
- // On the X server side listen to the forwarder
- // on localhost.
- //
-
- if (loopbackBind || (control->ProxyMode == proxy_server)) {
- address = htonl(INADDR_LOOPBACK);
- }
- else
- {
- address = htonl(INADDR_ANY);
- }
+ if (loopbackBind || (control->ProxyMode == proxy_server)) {
+ address = htonl(INADDR_LOOPBACK);
}
else
{
- address = GetHostAddress(listenHost);
+ address = htonl(INADDR_ANY);
}
-
return 1;
}