[Zope-Checkins] SVN: Zope/trunk/ - Collector #1507: Zope now binds again to all available IP addresses if

Andreas Jung andreas at andreas-jung.com
Sat Mar 12 13:31:03 EST 2005


Log message for revision 29456:
  
        - Collector #1507: Zope now binds again to all available IP addresses if
          ip-address is unset
  

Changed:
  U   Zope/trunk/doc/CHANGES.txt
  U   Zope/trunk/lib/python/ZServer/datatypes.py

-=-
Modified: Zope/trunk/doc/CHANGES.txt
===================================================================
--- Zope/trunk/doc/CHANGES.txt	2005-03-12 03:45:35 UTC (rev 29455)
+++ Zope/trunk/doc/CHANGES.txt	2005-03-12 18:31:02 UTC (rev 29456)
@@ -57,6 +57,9 @@
         text/<foo> types
 
     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
         Catalog.delColumn(). There can be only one column with the

Modified: Zope/trunk/lib/python/ZServer/datatypes.py
===================================================================
--- Zope/trunk/lib/python/ZServer/datatypes.py	2005-03-12 03:45:35 UTC (rev 29455)
+++ Zope/trunk/lib/python/ZServer/datatypes.py	2005-03-12 18:31:02 UTC (rev 29456)
@@ -41,7 +41,6 @@
         if os.name == 'posix' and 'localhost' in hostname.lower(): 
             hostname = ''
         _default_host_info = hostname, ip
-
     return _default_host_info
 
 
@@ -59,6 +58,9 @@
         if defaulthost:
             hostname = defaulthost
             ip = socket.gethostbyname(hostname)
+        elif defaulthost is '':
+            hostname = ''
+            ip = '127.0.0.1'
         else:
             hostname, ip = get_default_host_info()
         if not self.host:



More information about the Zope-Checkins mailing list