Show More
@@ -708,7 +708,12 b' def create_server(path, name, templates,' | |||||
708 | import BaseHTTPServer |
|
708 | import BaseHTTPServer | |
709 |
|
709 | |||
710 | class IPv6HTTPServer(BaseHTTPServer.HTTPServer): |
|
710 | class IPv6HTTPServer(BaseHTTPServer.HTTPServer): | |
711 |
address_family = socket |
|
711 | address_family = getattr(socket, 'AF_INET6', None) | |
|
712 | ||||
|
713 | def __init__(self, *args, **kwargs): | |||
|
714 | if self.address_family is None: | |||
|
715 | raise RepoError('IPv6 not available on this system') | |||
|
716 | BaseHTTPServer.HTTPServer.__init__(self, *args, **kwargs) | |||
712 |
|
717 | |||
713 | class hgwebhandler(BaseHTTPServer.BaseHTTPRequestHandler): |
|
718 | class hgwebhandler(BaseHTTPServer.BaseHTTPRequestHandler): | |
714 | def log_error(self, format, *args): |
|
719 | def log_error(self, format, *args): |
General Comments 0
You need to be logged in to leave comments.
Login now