Skip to content

Commit

Permalink
fix usage of socket.getaddrinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
GIC-de committed Jul 24, 2024
1 parent c4bd5b5 commit 9b7c823
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyrad/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def bind(self, addr):

def _SocketOpen(self):
try:
family = socket.getaddrinfo(self.server, 'www')[0][0]
family = socket.getaddrinfo(self.server, 80)[0][0]
except:
family = socket.AF_INET
if not self._socket:
Expand Down
2 changes: 1 addition & 1 deletion pyrad/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def _GetAddrInfo(self, addr):
"""
results = set()
try:
tmp = socket.getaddrinfo(addr, '80')
tmp = socket.getaddrinfo(addr, 80)
except socket.gaierror:
return []

Expand Down

0 comments on commit 9b7c823

Please sign in to comment.