Use host 0.0.0.0

This commit is contained in:
Cadence Ember 2020-08-12 01:28:16 +12:00
parent 984781ea3c
commit 04c4e4d472
No known key found for this signature in database
GPG Key ID: 128B99B1B74A6412
1 changed files with 1 additions and 1 deletions

View File

@ -553,5 +553,5 @@ class Second(object):
cherrypy.response.headers["content-type"] = r.headers["content-type"]
return r # no idea if this is a good way to do it, but it definitely works! :D
cherrypy.config.update({"server.socket_port": 3000})
cherrypy.config.update({"server.socket_port": 3000, "server.socket_host": "0.0.0.0"})
cherrypy.quickstart(Second())