Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init: queryhosts and denyqueryhosts should accept empty strings #163

Merged
merged 1 commit into from
Dec 10, 2022

Conversation

kenyon
Copy link
Member

@kenyon kenyon commented Dec 10, 2022

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 #101).

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).
@kenyon kenyon added the bug Something isn't working label Dec 10, 2022
@bastelfreak bastelfreak merged commit d719ac0 into voxpupuli:master Dec 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants