Pithikos / python-websocket-server

A simple fully working websocket-server in Python with no external dependencies

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

support IPV6 connection ?

tomitomas opened this issue · comments

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