You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you start the wdom server listening on an IPv6 address (start(address="::",port=8888)) then server_config['port'] will not be set correctly (which then causes an exception in the logger statement in start_server).
The following patch fixes this:
diff --git a/wdom/server/_tornado.py b/wdom/server/_tornado.py
index cb8aac6..df9335f 100644
--- a/wdom/server/_tornado.py+++ b/wdom/server/_tornado.py@@ -185,7 +185,7 @@ def start_server(app: web.Application = None, port: int = None,
app.loop = asyncio.get_event_loop()
server_config['address'] = address
for sock in server._sockets.values():
- if sock.family == socket.AF_INET:+ if sock.family in (socket.AF_INET,socket.AF_INET6):
server_config['port'] = sock.getsockname()[1]
break
return server
The text was updated successfully, but these errors were encountered:
Hi,
If you start the wdom server listening on an IPv6 address (
start(address="::",port=8888)
) thenserver_config['port']
will not be set correctly (which then causes an exception in the logger statement instart_server
).The following patch fixes this:
The text was updated successfully, but these errors were encountered: