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

Function test_internal_ip_allows_public

crates/openshell-core/src/net.rs:535–540  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

533
534 #[test]
535 fn test_internal_ip_allows_public() {
536 assert!(!is_internal_ip(IpAddr::V4(Ipv4Addr::new(8, 8, 8, 8))));
537 assert!(!is_internal_ip(IpAddr::V6(Ipv6Addr::new(
538 0x2001, 0x4860, 0x4860, 0, 0, 0, 0, 0x8888
539 ))));
540 }
541
542 #[test]
543 fn test_internal_ip_ipv4_mapped_v6() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected