Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/OpenShell
/ tcp
Function
tcp
crates/openshell-supervisor-process/src/supervisor_session.rs:670–675 ·
view source on GitHub ↗
(host: &str, port: u32)
Source
from the content-addressed store, hash-verified
668
use super::*;
669
670
fn tcp(host: &str, port: u32) -> TcpRelayTarget {
671
TcpRelayTarget {
672
host: host.to_string(),
673
port,
674
}
675
}
676
677
#[test]
678
fn tcp_target_allows_loopback_hosts() {
Callers
3
tcp_target_allows_loopback_hosts
Function · 0.85
tcp_target_rejects_non_loopback_hosts
Function · 0.85
tcp_target_rejects_invalid_ports
Function · 0.85
Calls
no outgoing calls
Tested by
3
tcp_target_allows_loopback_hosts
Function · 0.68
tcp_target_rejects_non_loopback_hosts
Function · 0.68
tcp_target_rejects_invalid_ports
Function · 0.68