Make host configurable

This commit is contained in:
Digital Studium 2025-05-14 19:36:43 +03:00
parent f69667c09f
commit 97abc99526
1 changed files with 2 additions and 1 deletions

View File

@ -81,5 +81,6 @@ def index():
if __name__ == "__main__":
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('--host', type=str, default='127.0.0.1', help='Host to run the service on')
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)