pub fn guard_remote_exposure(
remote_bind: &str,
accepted: bool,
) -> Result<(), SshCliError>Expand description
Rejects a reverse forward that would publish a remote listener.
The mirror of guard_network_exposure for the inverted direction. The
address is not parsed as an IP because RFC 4254 also assigns meaning to names
and to the empty string (all interfaces), so an IP parser would reject the
very forms that matter most.
ยงErrors
SshCliError::InvalidArgument (exit 64) when the remote bind is routable
and accepted is false.