Commit 4fd8ebcd authored by Andreas Jung's avatar Andreas Jung

- Collector #1507: Zope now binds again to all available IP addresses if

        ip-address is unset
parent 07348414
...@@ -58,6 +58,9 @@ Zope Changes ...@@ -58,6 +58,9 @@ Zope Changes
Bugs fixed Bugs fixed
- Collector #1507: Zope now binds again to all available IP addresses if
ip-address is unset
- Use 'del' instead of 'list.remove()' in - Use 'del' instead of 'list.remove()' in
Catalog.delColumn(). There can be only one column with the Catalog.delColumn(). There can be only one column with the
same name, and it could potentially break catalog metadata as same name, and it could potentially break catalog metadata as
......
...@@ -41,7 +41,6 @@ def get_default_host_info(): ...@@ -41,7 +41,6 @@ def get_default_host_info():
if os.name == 'posix' and 'localhost' in hostname.lower(): if os.name == 'posix' and 'localhost' in hostname.lower():
hostname = '' hostname = ''
_default_host_info = hostname, ip _default_host_info = hostname, ip
return _default_host_info return _default_host_info
...@@ -59,6 +58,9 @@ class ServerFactory: ...@@ -59,6 +58,9 @@ class ServerFactory:
if defaulthost: if defaulthost:
hostname = defaulthost hostname = defaulthost
ip = socket.gethostbyname(hostname) ip = socket.gethostbyname(hostname)
elif defaulthost is '':
hostname = ''
ip = '127.0.0.1'
else: else:
hostname, ip = get_default_host_info() hostname, ip = get_default_host_info()
if not self.host: if not self.host:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment