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

Function is_loopback_host

crates/openshell-server/src/provider_refresh.rs:679–681  ·  view source on GitHub ↗
(host: &str)

Source from the content-addressed store, hash-verified

677}
678
679fn is_loopback_host(host: &str) -> bool {
680 matches!(host, "localhost" | "127.0.0.1" | "::1")
681}
682
683pub fn spawn_refresh_worker(state: std::sync::Arc<crate::ServerState>, interval: Duration) {
684 info!(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected