Short description

Standalone mode is missing IPv6 support (at least in 1.8). Here's a way to enable it.

--- ../moin-1.8.2/MoinMoin/server/server_standalone.py  2009-01-07 02:26:52.000000000 +0200
+++ ../gw-install/lib/python2.6/site-packages/MoinMoin/server/server_standalone.py      2009-09-26 21:50:31.000000000 +0300
@@ -49,6 +49,7 @@
 httpd = None
 config = None
 
+import socket
 
 class SimpleServer(BaseHTTPServer.HTTPServer):
     """ Simplest server, serving one request after another
@@ -57,7 +58,8 @@
     footprint is needed.
     """
     use_threads = False
-
+    address_family = socket.AF_INET6
+    
     def __init__(self, config):
         self.htdocs = config.docs
         self.request_queue_size = config.requestQueueSize


Thanks for the patch, maybe some moin 1.8 users can make use of it.

For moin >= 1.9, this patch does not apply, because moin is based on WSGI then (and uses werkzeug as wsgi library and also as wsgi standalone server).

-- ThomasWaldmann 2009-11-09 16:43:23


CategoryFeatureRequest

MoinMoin: FeatureRequests/StandaloneIpv6Support (last edited 2009-11-09 16:43:23 by ThomasWaldmann)