Opened 6 years ago

Closed 6 years ago

Last modified 5 years ago

#15112 closed (fixed)

runserver shows wrong IPv6 notation as address if started with -6 option, without giving a specific address to bind to

Reported by: Elmar Athmer Owned by: nobody
Component: django-admin.py runserver Version: master
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

If you use ./manage.py runserver -6 django prints

Development server is running at http://::1:8000/ - but the proper address is http://[::1]:8000. The url is only printed properly if the runserver command is started with a specific IP address, e.g.: ./manage.py runserver [::1]:8000 .

Attachments (2)

ipv6_address_notation.diff (568 bytes) - added by Elmar Athmer 6 years ago.
sets the variable used to determine if the address should be surrounded by brackets
ticket15112.diff (1.8 KB) - added by Łukasz Rekucki 6 years ago.
Same patch, but with tests.

Download all attachments as: .zip

Change History (6)

Changed 6 years ago by Elmar Athmer

Attachment: ipv6_address_notation.diff added

sets the variable used to determine if the address should be surrounded by brackets

Changed 6 years ago by Łukasz Rekucki

Attachment: ticket15112.diff added

Same patch, but with tests.

comment:1 Changed 6 years ago by Łukasz Rekucki

milestone: 1.3
Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Triage Stage: UnreviewedAccepted

comment:2 Changed 6 years ago by Claude Paroz

Triage Stage: AcceptedReady for checkin

comment:3 Changed 6 years ago by Russell Keith-Magee

Resolution: fixed
Status: newclosed

(In [15343]) Fixed #15112 -- Ensure that IPv6 addresses are correctly displayed in the admin. Thanks to oxy for the report, and Łukasz Rekucki for the test case.

comment:4 Changed 5 years ago by Jacob

milestone: 1.3

Milestone 1.3 deleted

Note: See TracTickets for help on using tickets.
Back to Top