aboutsummaryrefslogtreecommitdiff
path: root/nxcomp/src/ChannelEndPoint.cpp
diff options
context:
space:
mode:
authorVadim Troshchinskiy <vtroshchinskiy@qindel.com>2017-09-28 16:42:41 +0200
committerVadim Troshchinskiy <vtroshchinskiy@qindel.com>2017-09-29 11:40:23 +0200
commit5f1eb0dc3eb89e84a3b146975e147b995fb7673f (patch)
tree990ce05b735e5a0eaed9533cbe7429e1abff59a9 /nxcomp/src/ChannelEndPoint.cpp
parent3c95d604073e555f78a4c5174f857bc7fb2881c9 (diff)
downloadnx-libs-5f1eb0dc3eb89e84a3b146975e147b995fb7673f.tar.gz
nx-libs-5f1eb0dc3eb89e84a3b146975e147b995fb7673f.tar.bz2
nx-libs-5f1eb0dc3eb89e84a3b146975e147b995fb7673f.zip
Fix nxagent argument parsing logic
This makes it so that slave=1 works again as it should. The changes introduced earlier resulted in the unintentional requirement to specify the actual port number, breaking backwards compatibility. Fixes: ArcticaProject/nx-libs#518
Diffstat (limited to 'nxcomp/src/ChannelEndPoint.cpp')
-rw-r--r--nxcomp/src/ChannelEndPoint.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/nxcomp/src/ChannelEndPoint.cpp b/nxcomp/src/ChannelEndPoint.cpp
index 921615bae..78902399c 100644
--- a/nxcomp/src/ChannelEndPoint.cpp
+++ b/nxcomp/src/ChannelEndPoint.cpp
@@ -150,6 +150,7 @@ ChannelEndPoint::getSpec(char **socketUri) const {
void
ChannelEndPoint::setDefaultTCPPort(long port) {
defaultTCPPort_ = port;
+ isTCP_ = getTCPHostAndPort();
}
void
@@ -165,6 +166,8 @@ ChannelEndPoint::setDefaultUnixPath(char *path) {
defaultUnixPath_ = strdup(path);
else
defaultUnixPath_ = NULL;
+
+ isUnix_ = getUnixPath();
}
void