File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -21,11 +21,19 @@ def models_list():
2121def model_rf_commands (brand , model ):
2222 return jsonify (get_device_commands (brand = brand , model = model ))
2323
24+
25+ # Get security help info
26+ @app .route ('/.well-known/security.txt' )
27+ def security_info ():
28+ return app .send_static_file ('.well-known/security.txt' )
29+
30+
2431# Get PORT from env.
2532PORT = os .getenv ("PORT" )
2633if not PORT :
2734 PORT = 5000
2835else :
2936 PORT = int (PORT )
37+
3038if __name__ == '__main__' :
3139 app .run (port = PORT )
Original file line number Diff line number Diff line change 1+ This server build by an open-source project at https://github.com/casanet/rf-commands-repo .
2+ If you would like to report a security issue in the code-base please open an issue in the repository,
3+ or contact me directly via my profile https://github.com/haimkastner .
4+ Thanks!
You can’t perform that action at this time.
0 commit comments