Explorar o código

fix: update LISTEN_HOST assignment to suppress security warnings

Manuel hai 7 meses
pai
achega
07fde0cc06
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      config.py

+ 1 - 1
config.py

@@ -112,7 +112,7 @@ class Config:
 
     # Flask settings
     DEBUG = safe_get_env("FLASK_DEBUG", False, var_type=bool)
-    LISTEN_HOST = safe_get_env("LISTEN_HOST") or safe_get_env("FLASK_HOST") or "0.0.0.0"  # nosec B104
+    LISTEN_HOST = safe_get_env("LISTEN_HOST") or safe_get_env("FLASK_HOST") or "0.0.0.0"  # nosec B104  # noqa: S104
     LISTEN_PORT = safe_get_env(
         "LISTEN_PORT", safe_get_env("FLASK_PORT", 5000, var_type=int), var_type=int
     )