python-websocket-server
python-websocket-server copied to clipboard
support IPV6 connection ?
Hi,
first of all, thanks for this great lib !
Quick question :
WebsocketServer(host="0.0.0.0", port=12345)
will that allow a connection using IPV6 ?
if not, is there a specific config to allow it ?
Hi,
you need to modify the variable address_family of the TCPServer Class in the socketserver.py file of your python lib like this:
address_family = socket.AF_INET6