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:
Miroslav Lichvar 2015-08-19 18:16:22 +02:00
parent eb5a412bed
commit fbe65f2c71
2 changed files with 3 additions and 2 deletions

View file

@ -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

View file

@ -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