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

Validations when DIG response is not expected #5

Merged
merged 2 commits into from
Dec 4, 2018

Conversation

jalamprea
Copy link
Contributor

When DIG response is something different like a timeout error or something else, the response should validated before try to access to the array data in fixed positions.
I have added this validations and reject the response in case of this kind of errors.
Also added the respective test!

@StephanGeorg StephanGeorg merged commit 2e91dac into StephanGeorg:master Dec 4, 2018
@StephanGeorg
Copy link
Owner

Thanks @jalamprea

Merged, reviewed and published to npm to node-dig-dns@0.2.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.

None yet

2 participants