VirtualHostMonster does not work with IPv6 named hosts
Bug #699865 reported by
Łukasz Nowak
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 2 |
Invalid
|
Medium
|
Unassigned |
Bug Description
VirtualHostMonster does not work with IPv6 named hosts.
In case of such rewrite configuration:
RewriteRule (.*) http://
When SERVER_ADDR is fd00::74ba VirtualHostMonster dies with:
Traceback (most recent call last):
File "/eggs/
meth(
File "/eggs/
host, port = host.split(':')
ValueError: too many values to unpack
This is because IPv6 addresses contain ":" in them.
To post a comment you must log in.
I "fixed" this issue by simply extending analysis of given address to being able to survive having semicolons in ip address and assuming that last part of address is a port, but only if it is integer, otherwise it is treat as address.