Make host configurable
This commit is contained in:
parent
f69667c09f
commit
97abc99526
|
@ -81,5 +81,6 @@ def index():
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
parser = argparse.ArgumentParser(description="Run SSL Certificate Decoder")
|
parser = argparse.ArgumentParser(description="Run SSL Certificate Decoder")
|
||||||
parser.add_argument('--port', type=int, default=5000, help='Port to run the service on')
|
parser.add_argument('--port', type=int, default=5000, help='Port to run the service on')
|
||||||
|
parser.add_argument('--host', type=str, default='127.0.0.1', help='Host to run the service on')
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
app.run(debug=True, port=args.port, host='0.0.0.0')
|
app.run(debug=True, port=args.port, host=args.host)
|
||||||
|
|
Loading…
Reference in New Issue