MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / expected_sandbox_id_from_record

Function expected_sandbox_id_from_record

crates/openshell-core/src/forward.rs:386–389  ·  view source on GitHub ↗
(record: &ForwardPidRecord)

Source from the content-addressed store, hash-verified

384}
385
386fn expected_sandbox_id_from_record(record: &ForwardPidRecord) -> Option<&str> {
387 // Legacy one-field PID files are cleanup records, not signal authority.
388 record.sandbox_id.as_deref().filter(|id| !id.is_empty())
389}
390
391fn ssh_forward_arg_matches_openshell_loopback_port(arg: &str, port: u16) -> bool {
392 let unbound = format!("{port}:127.0.0.1:{port}");

Callers 2

stop_forwardFunction · 0.85
list_forwardsFunction · 0.85

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected