else:
return Response("Counter name: "+countername+" not found.",404, mimetype='text/plain')
-port_number = 8085
+port_number = 2222
if len(sys.argv) >= 2:
if isinstance(sys.argv[1], int):
port_number = sys.argv[1]
-port_number_secure=8185
-
app.add_api('STD_A1.yaml')
-context=get_security_context()
-if (context == None):
- print("Start on non-secure port: "+str(port_number))
- app.run(port=port_number, host="::")
-else:
- print("Start on secure port: "+str(port_number_secure))
- app.run(port=port_number_secure, host="::", ssl_context=context)
+
+app.run(port=port_number, host="127.0.0.1", threaded=False)
\ No newline at end of file