Hi, Thanks for your interest in Zeya!
Cyril Brulebois <k...@debian.org> writes: > it looks like zeya only listens on 8080 through v4, not v6. It'd > be nice to have both. Right. By default, Python's SocketServer only uses AF_INET sockets. The following makes IPv6 work (and also enables IPv4 traffic through mapped addresses): | diff --git a/zeya.py b/zeya.py | index 5f9be97..0c3280a 100755 | --- a/zeya.py | +++ b/zeya.py | @@ -30,6 +30,7 @@ from SocketServer import ThreadingMixIn | import getopt | import urllib | import os | +import socket | import sys | import tempfile | import traceback | @@ -66,6 +67,8 @@ class ThreadedHTTPServer(ThreadingMixIn, HTTPServer): | """ | HTTP Server that handles requests in separate threads. | """ | + if socket.has_ipv6: | + address_family = socket.AF_INET6 | pass | | def ZeyaHandler(backend, library_repr, resource_basedir, bitrate): The problem is that socket.has_ipv6 is a compile-time flag, I'm not sure what this patch does on a system where Python supports IPv6 but IPv6 support has been disabled (e.g. by blacklisting ipv6.ko). (Note that IPv6 cannot be disabled in Debian kernels, but the user may be running their own.) Phil, Samson, any opinions? Thanks, -- Romain Francoise <rfranco...@debian.org> http://people.debian.org/~rfrancoise/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org