Skip to main content

check_protocol

Function check_protocol 

Source
pub fn check_protocol(client: u16, min: u16, max: u16) -> Result<(), String>
Expand description

Whether a relay that accepts min..=max serves a client of protocol client; the refusal names both and what to upgrade.

ยงErrors

The refusal, for a client outside the range.