]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
client: connect to Unix domain socket by default
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 19 Aug 2015 16:16:22 +0000 (18:16 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 21 Aug 2015 11:26:46 +0000 (13:26 +0200)
The default value of the -h option is now
/var/run/chrony/chronyd.sock,127.0.0.1,::1.

chronyc.1.in
client.c

index 33d7ff8372d7bc22452a5a713319daee61fe76ea..4e3a600e5684c3872f1ffdffd16e1467b75bba08 100644 (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
index a201bc4b408a76c0874c496024e656142d50b6c6..55f053ae23f100b485ca1360291d8e4c9422b023 100644 (file)
--- a/client.c
+++ b/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