Commits

Robert Brewer committed 502318a

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

Comments (0)

Files changed (1)

cherrypy/_cpserver.py

         bind_addr = self.httpservers[httpserver]
         if isinstance(bind_addr, tuple):
             wait_for_free_port(*bind_addr)
-            on_what = "http://%s:%s/" % bind_addr
+            host, port = bind_addr
+            if not host:
+                host = '0.0.0.0'
+            on_what = "http://%s:%s/" % (host, port)
         else:
             on_what = "socket file: %s" % bind_addr