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

Fix unknown host #14

Merged
merged 2 commits into from
Jun 10, 2024
Merged

Fix unknown host #14

merged 2 commits into from
Jun 10, 2024

Conversation

restena-pyg
Copy link
Contributor

socket.gethostbyaddr function triggers an "[Errno 1] Unknown host" exception if the provided IP address cannot be resolved.

In example:

python3 -c 'import socket; socket.gethostbyaddr("10.1.1.1")'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
socket.herror: [Errno 1] Unknown host

The proposed fix allows the execution to continue.

src/dmarc2logstash.py Outdated Show resolved Hide resolved
@jertel jertel merged commit 1c48974 into jertel:master Jun 10, 2024
@jertel jertel mentioned this pull request Jun 10, 2024
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