#7735: IPv6 support for runserver
---------------------------------------+------------------------------------
Reporter: jbalonso | Owner: nobody
Status: new | Milestone:
Component: django-admin.py runserver | Version: SVN
Keywords: ipv6 | Stage: Unreviewed
Has_patch: 1 |
---------------------------------------+------------------------------------
The runserver management command does not support IPv6 addresses. The
attached patch does the following things (all relatively minor) to add
that support:
1. Adds an --ipv6, -6 option (default disabled) to runserver's options
list.
1. Adds a test for socket.AF_INET6. If it's missing, raise a command
error about IPv6 support in Python.
1. Change the addr:port split code from split(':') to rsplit(':',1).
1. Change the default address from 127.0.0.1 to ::1 when IPv6 is being
enabled.
1. Signals the run routine from django.core.servers.basehttp by a named
enable_ipv6 parameter.
1. Change the aforementioned run routine to declare and use, only when
enable_ipv6 is true, a WSGIServerV6 class to override the default address
family (set to AF_INET by python's SocketServer.TCPServer class).
--
Ticket URL: <http://code.djangoproject.com/ticket/7735>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---