Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 1316

Show
Ignore:
Timestamp:
09/02/06 04:06:27
Author:
fumanchu
Message:

Fix for #560 (misleading log on socket_host="") for CP 2.2 and CP 3.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/cherrypy-2.x/cherrypy/_cpserver.py

    r1004 r1316  
    100100             
    101101            if not host: 
    102                 host = 'localhost
     102                host = '0.0.0.0
    103103            on_what = "http://%s:%s/" % (host, port) 
    104104        else: 
  • trunk/cherrypy/_cpserver.py

    r1304 r1316  
    100100        if isinstance(bind_addr, tuple): 
    101101            wait_for_free_port(*bind_addr) 
    102             on_what = "http://%s:%s/" % bind_addr 
     102            host, port = bind_addr 
     103            if not host: 
     104                host = '0.0.0.0' 
     105            on_what = "http://%s:%s/" % (host, port) 
    103106        else: 
    104107            on_what = "socket file: %s" % bind_addr 

Hosted by WebFaction

Log in as guest/cpguest to create tickets