mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
Default port (4822) and working connect message
This commit is contained in:
@@ -82,7 +82,7 @@ int main(int argc, char* argv[]) {
|
||||
int connected_socket_fd;
|
||||
|
||||
/* Arguments */
|
||||
int listen_port = -1;
|
||||
int listen_port = 4822; /* Default port */
|
||||
int opt;
|
||||
|
||||
/* Parse arguments */
|
||||
@@ -95,17 +95,11 @@ int main(int argc, char* argv[]) {
|
||||
}
|
||||
}
|
||||
else {
|
||||
fprintf(stderr, "USAGE: %s -l LISTENPORT\n", argv[0]);
|
||||
fprintf(stderr, "USAGE: %s [-l LISTENPORT]\n", argv[0]);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
}
|
||||
|
||||
/* Validate arguments */
|
||||
if (listen_port < 0) {
|
||||
fprintf(stderr, "The port to listen on must be specified.\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
/* Get binding address */
|
||||
memset(&server_addr, 0, sizeof(server_addr)); /* Zero struct */
|
||||
server_addr.sin_family = AF_INET;
|
||||
|
Reference in New Issue
Block a user