Skip to content

Commit 6dc6262

Browse files
committed
fix ssl setup for flask
1 parent d047a72 commit 6dc6262

File tree

1 file changed

+1
-2
lines changed
  • meross_local_broker/rootfs/opt/custom_broker

1 file changed

+1
-2
lines changed

meross_local_broker/rootfs/opt/custom_broker/http_api.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ def parse_args():
7979
# Parse Args
8080
args = parse_args()
8181

82-
context = ssl.create_default_context()
83-
context.check_hostname = False
82+
context = ssl.create_default_context(purpose=ssl.Purpose.CLIENT_AUTH)
8483
context.load_cert_chain(args.cert_ca, args.cert_key)
8584

8685
app.run(port=args.port, host=args.host, debug=args.debug, use_debugger=False, use_reloader=args.debug, ssl_context=context)

0 commit comments

Comments
 (0)