MCPcopy Create free account
hub / github.com/DNSCrypt/encrypted-dns-server / may_be_quic

Function may_be_quic

src/dnscrypt.rs:292–294  ·  view source on GitHub ↗
(packet: &[u8])

Source from the content-addressed store, hash-verified

290}
291
292pub fn may_be_quic(packet: &[u8]) -> bool {
293 !packet.is_empty() && ((80..=127).contains(&packet[0]) || (192..=255).contains(&packet[0]))
294}

Callers 1

handle_client_queryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected