Commit f55852c2 authored by Vadim Troshchinskiyddd's avatar Vadim Troshchinskiyddd Committed by Mike Gabriel

Fix nxproxy hostname parsing.

Fixes ArcticaProject/nx-libs#207 Closes ArcticaProject/nx-libs#216
parent 85f5fdfd
......@@ -9367,10 +9367,10 @@ int ParseCommandLineOptions(int argc, const char **argv)
// command line at the connecting side.
//
char *cHost;
long cPort;
char cHost[DEFAULT_STRING_LENGTH] = { '\0' };
long cPort = 0;
if (connectSocket.getTCPHostAndPort(&cHost, &cPort) && (ParseHostOption(nextArg, cHost, cPort) > 0))
if (ParseHostOption(nextArg, cHost, cPort) > 0)
{
//
// Assume port is at a proxied display offset.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment