webserver: listen on 127.0.0.1 instead of 0.0.0.0

This commit is contained in:
Daniel Schadt 2015-11-20 16:17:34 +01:00
parent 09e310277d
commit 729d29b8a7

View File

@ -95,7 +95,7 @@ def main():
basedir = os.path.realpath(os.path.dirname(sys.executable))
app.template_folder = os.path.join(basedir, 'integration', 'templates')
port = int(sys.argv[1])
server = WSGIServer(('0.0.0.0', port), app)
server = WSGIServer(('127.0.0.1', port), app)
signal.signal(signal.SIGTERM, lambda *args: server.stop())