Catch an additional networking case when attempting to detect wedges.

This commit is contained in:
Marsell Kukuljevic 2025-05-09 11:23:42 +02:00
parent 133224ed27
commit e1df21f869
3 changed files with 3 additions and 2 deletions

View File

@ -63,8 +63,9 @@ async def async_connect(src, dest):
# If we hit here, a packet might have been lost, so try again. # If we hit here, a packet might have been lost, so try again.
pass pass
except OSError as e: except OSError as e:
if e.errno == errno.EHOSTUNREACH: if e.errno == errno.EHOSTUNREACH or e.errno == errno.ENETUNREACH:
# If there is no route, no point retrying either. # If there is no route, or we're dealing with firewall,
# no point retrying either.
break break
else: else:
raise raise

Binary file not shown.

BIN
wedge/triton_wedge-0.1.1.mkp Executable file

Binary file not shown.