MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / display_v2_ipv4_source

Function display_v2_ipv4_source

gateway/src/pp.rs:294–304  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

292
293 #[test]
294 fn display_v2_ipv4_source() {
295 let header = ProxyHeader::Version2 {
296 command: v2::ProxyCommand::Proxy,
297 transport_protocol: v2::ProxyTransportProtocol::Stream,
298 addresses: v2::ProxyAddresses::Ipv4 {
299 source: "9.8.7.6:1234".parse().unwrap(),
300 destination: "1.2.3.4:80".parse().unwrap(),
301 },
302 };
303 assert_eq!(format!("{}", DisplayAddr(&header)), "9.8.7.6:1234");
304 }
305}

Callers

nothing calls this directly

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected