Expand description
The two rules connection.md puts on an advertised endpoint, shared by both roles.
A peer that discovers a record over mDNS SHOULD only connect to an address that is not a
loopback or unspecified one, and only when the advertised path matches the path-absolute rule
of RFC 3986. The client dials servers and the server dials clients under the same rule, so the
rule lives here and not in either crate. Both functions are pure string checks: no socket, no
resolver.
Functionsยง
- is_
local_ address - Whether
addressis one a peer must not dial: a loopback or unspecified address, or a host name that is a loopback by rule. - is_
path_ absolute - Whether
pathmatches thepath-absoluterule of RFC 3986, section 3.3.