client: connect to Unix domain socket by default
The default value of the -h option is now /var/run/chrony/chronyd.sock,127.0.0.1,::1.
This commit is contained in:
parent
eb5a412bed
commit
fbe65f2c71
2 changed files with 3 additions and 2 deletions
|
@ -24,7 +24,8 @@ A summary of the options supported by \fBchronyc\fR is included below.
|
|||
|
||||
.TP
|
||||
\fB\-h\fR \fIhostname\fR
|
||||
specify hostname or comma-separated list of addresses (default 127.0.0.1,::1)
|
||||
specify hostname or comma-separated list of addresses
|
||||
(default @CHRONYSOCKDIR@/chronyd.sock,127.0.0.1,::1)
|
||||
.TP
|
||||
\fB\-p\fR \fIport-number\fR
|
||||
specify port-number
|
||||
|
|
2
client.c
2
client.c
|
@ -2920,7 +2920,7 @@ main(int argc, char **argv)
|
|||
DNS_SetAddressFamily(family);
|
||||
|
||||
if (!hostnames) {
|
||||
hostnames = "127.0.0.1,::1";
|
||||
hostnames = DEFAULT_COMMAND_SOCKET",127.0.0.1,::1";
|
||||
#ifdef FEAT_ASYNCDNS
|
||||
initial_timeout /= 10;
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue