Skip to content
Snippets Groups Projects
Commit bc9ca4d5 authored by Bryan O'Sullivan's avatar Bryan O'Sullivan
Browse files

Merge IPv6 fix.

parents c2e77581 16ce690c
No related branches found
No related tags found
No related merge requests found
......@@ -708,7 +708,12 @@
import BaseHTTPServer
class IPv6HTTPServer(BaseHTTPServer.HTTPServer):
address_family = socket.AF_INET6
address_family = getattr(socket, 'AF_INET6', None)
def __init__(self, *args, **kwargs):
if self.address_family is None:
raise RepoError('IPv6 not available on this system')
BaseHTTPServer.HTTPServer.__init__(self, *args, **kwargs)
class hgwebhandler(BaseHTTPServer.BaseHTTPRequestHandler):
def log_error(self, format, *args):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment