mirror of
https://github.com/0x5t4l1n/Keylogger.git
synced 2026-05-26 19:36:31 +00:00
Merge pull request #12 from Stalin-143/alert-autofix-1
Fix code scanning alert no. 1: Flask app is run in debug mode
This commit is contained in:
+2
-1
@@ -120,4 +120,5 @@ def download_log():
|
|||||||
return "Log file not found."
|
return "Log file not found."
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
app.run(debug=True)
|
debug_mode = os.getenv('FLASK_DEBUG', 'False').lower() in ['true', '1', 't']
|
||||||
|
app.run(debug=debug_mode)
|
||||||
|
|||||||
Reference in New Issue
Block a user