no need to bind to 0.0.0.0

This commit is contained in:
Son NK 2020-06-28 21:58:08 +02:00
parent c41bffbbae
commit c22af6d1f0
1 changed files with 2 additions and 2 deletions

View File

@ -632,6 +632,6 @@ if __name__ == "__main__":
context = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2)
context.load_cert_chain("local_data/cert.pem", "local_data/key.pem")
app.run(debug=True, host="0.0.0.0", port=7777, ssl_context=context)
app.run(debug=True, port=7777, ssl_context=context)
else:
app.run(debug=True, host="0.0.0.0", port=7777)
app.run(debug=True, port=7777)