1
1
mirror of https://github.com/chubin/cheat.sh.git synced 2024-11-23 10:35:29 +03:00

FIx srv.bin to work -- listens on 0.0.0.0

This commit is contained in:
Brandon Lopez 2018-07-27 16:16:05 -07:00
parent 3e0326d313
commit 3e5641470a

View File

@ -6,7 +6,7 @@ Main server program.
"""
from __future__ import print_function
from gevent.wsgi import WSGIServer
from gevent.pywsgi import WSGIServer
from gevent.monkey import patch_all
patch_all()
@ -204,5 +204,5 @@ def answer(topic=None):
return result
return Response(result, mimetype='text/plain')
SRV = WSGIServer(("", 8002), app) # log=None)
SRV = WSGIServer(("0.0.0.0", 8002), app) # log=None)
SRV.serve_forever()