Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

fixing --host option

the host option was being ignored.  this fixes that.
tested by running a bunny1 server with
when the output of 'hostname' was "host" and it worked.
  • Loading branch information...
commit d72dbca753e618b61c98b9b9f9fd5bde0bc5b032 1 parent d49858a
@ccheever authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/
4 src/
@@ -253,7 +253,9 @@ def start(self, port=None, host=None, errorlogfile=None, accesslogfile=None):
cherrypy.config["log.error_file"] = errorlogfile
if accesslogfile:
cherrypy.config["log.access_file"] = accesslogfile
- if not host:
+ if host:
+ cherrypy.server.socket_host = host
+ else:
from socket import gethostname
cherrypy.server.socket_host = gethostname()
return cherrypy.quickstart(self)
Please sign in to comment.
Something went wrong with that request. Please try again.