Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support IPV6 connection ? #106

Open
tomitomas opened this issue Sep 1, 2022 · 1 comment
Open

support IPV6 connection ? #106

tomitomas opened this issue Sep 1, 2022 · 1 comment

Comments

@tomitomas
Copy link

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 ?

@AlexandreVig
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants