mirror of
https://github.com/qingchencloud/clawpanel.git
synced 2026-07-21 20:54:09 +08:00
fix: Gateway status detection false-negative when command line unreadable (permissions)
- dev-api.js: treat unreadable PIDs as potential Gateway instead of foreign - dev-api.js: add TCP probe fallback in get_services_status for all platforms - service.rs: same fix in Tauri side inspect_port_owners
This commit is contained in:
@@ -724,7 +724,13 @@ mod platform {
|
||||
Some(command_line) if super::looks_like_gateway_command_line(&command_line) => {
|
||||
gateway_pids.push(pid);
|
||||
}
|
||||
_ => foreign_pids.push(pid),
|
||||
Some(command_line) if !command_line.is_empty() => {
|
||||
foreign_pids.push(pid);
|
||||
}
|
||||
_ => {
|
||||
// 命令行读不到时,假定为 Gateway(避免权限问题导致误报)
|
||||
gateway_pids.push(pid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user