mirror of
https://github.com/0x5t4l1n/Keylogger.git
synced 2026-05-26 19:36:31 +00:00
Fix code scanning alert no. 1: Flask app is run in debug mode
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
+2
-1
@@ -120,4 +120,5 @@ def download_log():
|
||||
return "Log file not found."
|
||||
|
||||
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