aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim Troshchinskiy <vtroshchinskiy@qindel.com>2020-02-11 10:45:28 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-05-30 21:13:56 +0200
commitbdc698b7a6b7a0f46019785c288d1baf5fdc9e2e (patch)
treedcfdf98a490ef1333d9eb1552a1bfdaa4d322426
parent5deb1bc73f607b3a3a06e14db3ebdb6942c8d387 (diff)
downloadnx-libs-bdc698b7a6b7a0f46019785c288d1baf5fdc9e2e.tar.gz
nx-libs-bdc698b7a6b7a0f46019785c288d1baf5fdc9e2e.tar.bz2
nx-libs-bdc698b7a6b7a0f46019785c288d1baf5fdc9e2e.zip
Enable slave socket in server mode
-rw-r--r--nxcomp/src/Loop.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/nxcomp/src/Loop.cpp b/nxcomp/src/Loop.cpp
index 59dd43a10..7fecb9123 100644
--- a/nxcomp/src/Loop.cpp
+++ b/nxcomp/src/Loop.cpp
@@ -11123,11 +11123,12 @@ int SetPorts()
if (control -> ProxyMode == proxy_client) {
slavePort.setDefaultTCPPort(DEFAULT_NX_SLAVE_PORT_CLIENT_OFFSET + proxyPort);
- useSlaveSocket = slavePort.enabled();
} else {
slavePort.setDefaultTCPPort(DEFAULT_NX_SLAVE_PORT_SERVER_OFFSET + proxyPort);
}
+ useSlaveSocket = slavePort.enabled();
+
nxinfo << "Loop: Using slave port '" << slavePort
<< "'.\n" << std::flush;