Blocked remote access to auth.json

This commit is contained in:
MoonRide303
2023-10-24 21:55:29 +02:00
parent 5d32c208b2
commit 19a03f1d0a
3 changed files with 6 additions and 2 deletions
+2 -1
View File
@@ -378,5 +378,6 @@ shared.gradio_root.launch(
server_name=args_manager.args.listen,
server_port=args_manager.args.port,
share=args_manager.args.share,
auth=check_auth if args_manager.args.share and auth_enabled else None
auth=check_auth if args_manager.args.share and auth_enabled else None,
blocked_paths=[constants.AUTH_FILENAME]
)