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

Add basic config validation #348

Merged
merged 1 commit into from
Jul 21, 2023
Merged

Conversation

pieterlexis-tomtom
Copy link
Contributor

This PR adds truly simple config validation. It allows for go-dnscollector to parse the configuration and stops right before actually launching the collectors/transformers/outputs.

The program can still fail after someone has validated their config, like permission errors for the dnstap socket or ports already in use. But this should at least let the user know if the config is valid.

@dmachard
Copy link
Owner

Nice, thanks for this PR.

@dmachard dmachard merged commit 69ddd41 into dmachard:main Jul 21, 2023
64 checks passed
@pieterlexis-tomtom pieterlexis-tomtom deleted the test-mode branch August 15, 2023 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants