Closed restena-pyg closed 2 months ago
socket.gethostbyaddr function triggers an "[Errno 1] Unknown host" exception if the provided IP address cannot be resolved.
socket.gethostbyaddr
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.
socket.gethostbyaddr
function triggers an "[Errno 1] Unknown host" exception if the provided IP address cannot be resolved.In example:
The proposed fix allows the execution to continue.