mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 20:15:07 -05:00
client: set default hostname to 127.0.0.1 instead of localhost
This is to make sure chronyd will see the remote address as 127.0.0.1 and allow access even when localhost resolves to an address of a non-loopback interface.
This commit is contained in:
2
client.c
2
client.c
@@ -2729,7 +2729,7 @@ main(int argc, char **argv)
|
||||
{
|
||||
char *line;
|
||||
const char *progname = argv[0];
|
||||
const char *hostname = "localhost";
|
||||
const char *hostname = "127.0.0.1";
|
||||
const char *conf_file = DEFAULT_CONF_FILE;
|
||||
int quit = 0, ret = 1, multi = 0, auto_auth = 0, short_timeout = 1;
|
||||
int port = DEFAULT_CANDM_PORT;
|
||||
|
||||
Reference in New Issue
Block a user