ui: pid mark app_key prefer cmdline token
This commit is contained in:
@@ -1942,7 +1942,12 @@ RU: Применяет policy-rules и проверяет health. При оши
|
||||
raise RuntimeError(f"failed to read cgroup for pid={pid} (process may not exist)")
|
||||
|
||||
cmdline = self._cmdline_from_pid(pid) or f"pid={pid}"
|
||||
app_key = self._exe_from_pid(pid) or self._infer_app_key_from_cmdline(cmdline) or f"pid:{pid}"
|
||||
# Prefer command-derived key to align with Profiles/Run behavior (less duplication).
|
||||
app_key = self._infer_app_key_from_cmdline(cmdline)
|
||||
if not app_key:
|
||||
app_key = self._exe_from_pid(pid)
|
||||
if not app_key:
|
||||
app_key = f"pid:{pid}"
|
||||
|
||||
target = "vpn" if self.rad_app_vpn.isChecked() else "direct"
|
||||
ttl_sec = int(self.spn_app_ttl.value()) * 3600
|
||||
|
||||
Reference in New Issue
Block a user