-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SiteAccess: Make VirtualHostMonster support IPv6 (#314)
from https://bugs.launchpad.net/zope2/+bug/699865 : VirtualHostMonster does not work with IPv6 named hosts. In case of such rewrite configuration: RewriteRule (.*) http://10.0.243.129:9280/VirtualHostBase/https/[%{SERVER_ADDR}]:4080$1 [L,P] When SERVER_ADDR is fd00::74ba VirtualHostMonster dies with: Traceback (most recent call last): File "/eggs/Zope2-2.12.14-py2.6-linux-x86_64.egg/ZPublisher/BeforeTraverse.py", line 145, in __call__ meth(*(container, request, None)[:args]) File "/eggs/Zope2-2.12.14-py2.6-linux-x86_64.egg/Products/SiteAccess/VirtualHostMonster.py", line 154, in __call__ host, port = host.split(':') ValueError: too many values to unpack This is because IPv6 addresses contain ":" in them. -- This is backport of #314 to 2.13 branch This also include part of: 2e9d01e - flake8 Products/Shared/ZTUtils. removing test_suite function from the test
- Loading branch information
1 parent
0c4b5d6
commit 338f6d0
Showing
2 changed files
with
62 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters