> On Windows, this 15 months old change in ZConfig sets the default
> hostname for inet_address to 'localhost':
...

> So if nobody can tell me why ZConfig was changed, I propose to

That sounds good to me, as I can't understand why Windows would be different
here either.

While looking at this, I stumbled across the following code in
ZConfig/datatypes.py:

        ## 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 os.name == 'posix' and 'localhost' in hostname.lower():
            hostname = ''

2 things struck me:
* 'localhost' in hostname.lower() appears odd - I would expect ==.
* that we probably want to do that for windows too

As the comments explicitly reference 1507 and the code references
'localhost', it may be worth examining too.

Cheers,

Mark

_______________________________________________
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )

Reply via email to