mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 23:45:07 -05:00
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:
@@ -24,7 +24,8 @@ A summary of the options supported by \fBchronyc\fR is included below.
|
|||||||
|
|
||||||
.TP
|
.TP
|
||||||
\fB\-h\fR \fIhostname\fR
|
\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
|
.TP
|
||||||
\fB\-p\fR \fIport-number\fR
|
\fB\-p\fR \fIport-number\fR
|
||||||
specify port-number
|
specify port-number
|
||||||
|
|||||||
2
client.c
2
client.c
@@ -2920,7 +2920,7 @@ main(int argc, char **argv)
|
|||||||
DNS_SetAddressFamily(family);
|
DNS_SetAddressFamily(family);
|
||||||
|
|
||||||
if (!hostnames) {
|
if (!hostnames) {
|
||||||
hostnames = "127.0.0.1,::1";
|
hostnames = DEFAULT_COMMAND_SOCKET",127.0.0.1,::1";
|
||||||
#ifdef FEAT_ASYNCDNS
|
#ifdef FEAT_ASYNCDNS
|
||||||
initial_timeout /= 10;
|
initial_timeout /= 10;
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user