diff --git a/pyrad/client.py b/pyrad/client.py index 6fde96b..7eb6d63 100644 --- a/pyrad/client.py +++ b/pyrad/client.py @@ -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: diff --git a/pyrad/server.py b/pyrad/server.py index 5efb2e8..49376db 100644 --- a/pyrad/server.py +++ b/pyrad/server.py @@ -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 []