Skip to content

Commit 9cd379d

Browse files
committed
Fixed mypy failure.
1 parent 68c827c commit 9cd379d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ssh_audit/dheat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -759,9 +759,9 @@ def _resolve_hostname(host: str, ip_version_preference: List[int]) -> Tuple[int,
759759
r = socket.getaddrinfo(host, 0, family, socket.SOCK_STREAM)
760760
for address_family, socktype, _, _, addr in r:
761761
if socktype == socket.SOCK_STREAM:
762-
return address_family, addr[0]
762+
return int(address_family), addr[0]
763763

764-
return -1, ''
764+
return int(socket.AF_UNSPEC), ''
765765

766766

767767
def _run(self) -> bool:

0 commit comments

Comments
 (0)