]> git.ipfire.org Git - thirdparty/chrony.git/commit
conf: add ipv4 and ipv6 options to server/pool/peer directive
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 5 Feb 2024 13:20:19 +0000 (14:20 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 7 Feb 2024 09:23:40 +0000 (10:23 +0100)
commit5cb584d6c1aca4a38fe22fb3d7a8cccbc359a28b
treeece1f8e585d17a2b7f489b9106277288f0d71d9a
parentd7c2b1d2f356da16fccc4b069db154764dc0fc4e
conf: add ipv4 and ipv6 options to server/pool/peer directive

Accept "ipv4" and "ipv6" options in the server/pool/peer directive to
use only IPv4 or IPv6 addresses respectively.

The configuration is different from the "server [-4|-6] hostname" syntax
supported by ntpd to avoid breaking existing scripts which expect the
hostname to always be the first argument of the directives.
cmdparse.c
cmdparse.h
conf.c
doc/chrony.conf.adoc