GUACAMOLE-1190: Merge explicitly use "localhost" as guacd default bind host, matching default of webapp.

This commit is contained in:
Virtually Nick 2021-12-24 19:23:53 -05:00 committed by GitHub
commit 1f6f45e6e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 2 deletions

View File

@ -176,8 +176,8 @@ guacd_config* guacd_conf_load() {
return NULL; return NULL;
/* Load defaults */ /* Load defaults */
conf->bind_host = NULL; conf->bind_host = strdup(GUACD_DEFAULT_BIND_HOST);
conf->bind_port = strdup("4822"); conf->bind_port = strdup(GUACD_DEFAULT_BIND_PORT);
conf->pidfile = NULL; conf->pidfile = NULL;
conf->foreground = 0; conf->foreground = 0;
conf->print_version = 0; conf->print_version = 0;

View File

@ -24,6 +24,18 @@
#include <guacamole/client.h> #include <guacamole/client.h>
/**
* The default host that guacd should bind to, if no other host is explicitly
* specified.
*/
#define GUACD_DEFAULT_BIND_HOST "localhost"
/**
* The default port that guacd should bind to, if no other port is explicitly
* specified.
*/
#define GUACD_DEFAULT_BIND_PORT "4822"
/** /**
* The contents of a guacd configuration file. * The contents of a guacd configuration file.
*/ */