mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Fixes too many arguments to socket.getaddrinfo()
This commit is contained in:
1 parent
81e56e035b
commit
81d417a2b3
2 files changed
+2
-2
No files matched your search
@@ -356,7 +356,7 @@ class TelnetServer(Console):
|
||||
def __enter__(self):
|
||||
# Open a socket and start listening
|
||||
|
||||
info = socket.getaddrinfo(self.addr, self.port, 0, socket.AF_UNSPEC, socket.SOCK_STREAM, 0, socket.AI_PASSIVE)
|
||||
info = socket.getaddrinfo(self.addr, self.port, socket.AF_UNSPEC, socket.SOCK_STREAM, 0, socket.AI_PASSIVE)
|
||||
if not info:
|
||||
raise TelnetServerError("getaddrinfo returns an empty list on {}:{}".format(self.addr, self.port))
|
||||
for res in info:
|
||||
|
||||
Reference in new issue
Block a user