2 Commits

Author SHA1 Message Date
Joe Testa b90db2c1af Fixed mypy failure. 2025-04-18 17:06:29 -04:00
playoutsideplay 68c827c239 Update LICENSE (#319)
Updated year
2025-04-18 16:27:44 -04:00
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
The MIT License (MIT) The MIT License (MIT)
Copyright (C) 2017-2024 Joe Testa (jtesta@positronsecurity.com) Copyright (C) 2017-2025 Joe Testa (jtesta@positronsecurity.com)
Copyright (C) 2017 Andris Raugulis (moo@arthepsy.eu) Copyright (C) 2017 Andris Raugulis (moo@arthepsy.eu)
+2 -2
View File
@@ -759,9 +759,9 @@ class DHEat:
r = socket.getaddrinfo(host, 0, family, socket.SOCK_STREAM) r = socket.getaddrinfo(host, 0, family, socket.SOCK_STREAM)
for address_family, socktype, _, _, addr in r: for address_family, socktype, _, _, addr in r:
if socktype == socket.SOCK_STREAM: if socktype == socket.SOCK_STREAM:
return address_family, addr[0] return int(address_family), str(addr[0])
return -1, '' return int(socket.AF_UNSPEC), ''
def _run(self) -> bool: def _run(self) -> bool: