[Zope-Checkins] SVN: Zope/trunk/lib/python/ZServer/datatypes.py
changing 'localhost' to '' only for non-win32 systems
Andreas Jung
andreas at andreas-jung.com
Fri Oct 15 01:24:00 EDT 2004
Log message for revision 28194:
changing 'localhost' to '' only for non-win32 systems
Changed:
U Zope/trunk/lib/python/ZServer/datatypes.py
-=-
Modified: Zope/trunk/lib/python/ZServer/datatypes.py
===================================================================
--- Zope/trunk/lib/python/ZServer/datatypes.py 2004-10-14 19:28:43 UTC (rev 28193)
+++ Zope/trunk/lib/python/ZServer/datatypes.py 2004-10-15 05:23:58 UTC (rev 28194)
@@ -16,6 +16,7 @@
Each server type is represented by a ServerFactory instance.
"""
+import sys
import socket
import ZConfig
@@ -37,7 +38,7 @@
## AJ: We change 'localhost' to '' to force Medusa to use
## any network interface instead of using only 127.0.0.1. This is
## a not totally clean solution :-/ See also Collector #1507.
- if 'localhost' in hostname.lower():
+ if sys.platform != 'win32' and 'localhost' in hostname.lower():
hostname = ''
_default_host_info = hostname, ip
More information about the Zope-Checkins
mailing list