GUACAMOLE-623: libwebsockets requires an integer port number.

This commit is contained in:
Michael Jumper 2018-09-09 21:49:58 -07:00
parent b8bd0e4c6a
commit 5bae422b29
2 changed files with 3 additions and 4 deletions

View File

@ -278,7 +278,7 @@ guac_kubernetes_settings* guac_kubernetes_parse_args(guac_user* user,
/* Read port */
settings->port =
guac_user_parse_args_string(user, GUAC_KUBERNETES_CLIENT_ARGS, argv,
guac_user_parse_args_int(user, GUAC_KUBERNETES_CLIENT_ARGS, argv,
IDX_PORT, GUAC_KUBERNETES_DEFAULT_PORT);
/* Read typescript path */
@ -340,7 +340,6 @@ void guac_kubernetes_settings_free(guac_kubernetes_settings* settings) {
/* Free network connection information */
free(settings->hostname);
free(settings->port);
/* Free SSL/TLS details */
free(settings->client_cert_file);

View File

@ -42,7 +42,7 @@
* The port to connect to when initiating any Kubernetes connection, if no
* other port is specified.
*/
#define GUAC_KUBERNETES_DEFAULT_PORT "8443"
#define GUAC_KUBERNETES_DEFAULT_PORT 8443
/**
* The filename to use for the typescript, if not specified.
@ -74,7 +74,7 @@ typedef struct guac_kubernetes_settings {
/**
* The port of the Kubernetes server to connect to.
*/
char* port;
int port;
/**
* Whether SSL/TLS should be used.