Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixing --host option

the host option was being ignored.  this fixes that.
tested by running a bunny1 server with --host=host.domain.com
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/bunny1.py
View
4 src/bunny1.py
@@ -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.