Skip to main content

protocol_gate

Function protocol_gate 

Source
pub fn protocol_gate(
    client: &str,
    min: &str,
    max: &str,
) -> Result<(), HandshakeReject>
Expand description

Gate a request’s protocol_version against the server-advertised [min, max] window. Reads succeed for any past version (callers skip this on read paths); this is the write gate.