diff options
author | Vadim Troshchinskiy <vatral@vadim.ws> | 2017-09-29 12:22:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-29 12:22:08 +0200 |
commit | b3f2e3006804e38f0b44ac467ee8a9c50c276bcf (patch) | |
tree | 990ce05b735e5a0eaed9533cbe7429e1abff59a9 /nxcomp/src/ChannelEndPoint.cpp | |
parent | 3c95d604073e555f78a4c5174f857bc7fb2881c9 (diff) | |
parent | 5f1eb0dc3eb89e84a3b146975e147b995fb7673f (diff) | |
download | nx-libs-b3f2e3006804e38f0b44ac467ee8a9c50c276bcf.tar.gz nx-libs-b3f2e3006804e38f0b44ac467ee8a9c50c276bcf.tar.bz2 nx-libs-b3f2e3006804e38f0b44ac467ee8a9c50c276bcf.zip |
Merge pull request #519 from theqvd/fix_nxagent_arg_parsing
Fix nxagent argument parsing logic
This makes it so that slave=1 and media=1 work again as they should.
The changes introduced earlier resulted in the unintentional requirement
to specify the actual port number, breaking backwards compatibility.
Diffstat (limited to 'nxcomp/src/ChannelEndPoint.cpp')
-rw-r--r-- | nxcomp/src/ChannelEndPoint.cpp | 3 |
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 |