[Zope-Checkins] CVS: Zope/ZServer/medusa - http_server.py:1.33
Matt Behrens
matt@zigg.com
Thu, 20 Jun 2002 10:39:35 -0400
Update of /cvs-repository/Zope/ZServer/medusa
In directory cvs.zope.org:/tmp/cvs-serv27276/ZServer/medusa
Modified Files:
http_server.py
Log Message:
#72: start on Windows 95 systems with no network devices
=== Zope/ZServer/medusa/http_server.py 1.32 => 1.33 ===
if not ip:
self.log_info('Computing default hostname', 'warning')
- ip = socket.gethostbyname (socket.gethostname())
+ try:
+ ip = socket.gethostbyname(socket.gethostname())
+ except socket.error:
+ ip = socket.gethostbyname('localhost')
try:
self.server_name = socket.gethostbyaddr (ip)[0]
except socket.error: