Рефакторинг под прод: nsenter-first транспорт, drift-aware reconcile, hardening daemon/lock/reboot/swap, расширенный status и build-скрипт
This commit is contained in:
@@ -25,7 +25,7 @@ pub fn discover_target(cfg: &Config) -> anyhow::Result<RuntimeTarget> {
|
||||
])?;
|
||||
let container_pid = pid_str.trim().parse::<u32>()?;
|
||||
let netns_path = format!("/proc/{container_pid}/ns/net");
|
||||
let interface_name = crate::iface::detect_interface(cfg, &container_name)?;
|
||||
let interface_name = crate::iface::detect_interface(cfg, container_pid, &container_name)?;
|
||||
|
||||
Ok(RuntimeTarget {
|
||||
container_name,
|
||||
|
||||
Reference in New Issue
Block a user