From cfc3109192e3e3273d629e3bdca532b3302ec273 Mon Sep 17 00:00:00 2001 From: Manmeet Kalra Date: Sun, 31 May 2026 04:46:54 +0530 Subject: [PATCH] fix: [AutoFix] Security fix --- src/utils/ping.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/utils/ping.py b/src/utils/ping.py index b07ff3b..949eb9a 100644 --- a/src/utils/ping.py +++ b/src/utils/ping.py @@ -5,8 +5,7 @@ def ping_host(host: str) -> str: """Ping a hostname / IP and return the stdout.""" proc = subprocess.run( - f"ping -c 1 {host}", - shell=True, + ["ping", "-c", "1", host], capture_output=True, text=True, timeout=10,