Skip to content

Commit

Permalink
init: queryhosts and denyqueryhosts should accept empty strings
Browse files Browse the repository at this point in the history
Commit ee2d9de changed the data type
for queryhosts from Array[String] to Array[String[1]]. These
parameters configure `allow` and `deny` in chrony.conf. But `allow` and
`deny` are allowed to be by themselves in the config, meaning "allow
everything" or "deny everything": https://chrony.tuxfamily.org/doc/4.3/chrony.conf.html#allow

This commit corrects the data type to Array[String[0]] and adds a test
to prevent future breakage (this was broken before too, and I fixed it
again in voxpupuli#101).
  • Loading branch information
kenyon committed Dec 10, 2022
1 parent f15a0d6 commit fe7a98c
Show file tree
Hide file tree
Showing 3 changed files with 213 additions and 206 deletions.
Loading

0 comments on commit fe7a98c

Please sign in to comment.