Something went wrong. Try again.
Expose HTTP/SSH/TCP services through SSH port forwarding. sandhole.com.br
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839use std::path::PathBuf;
use ipnet::IpNet;
#[derive(thiserror::Error, Debug)]pub(crate) enum ServerError { #[error("Invalid config: {0}")] InvalidConfig(String), #[error("Invalid file path")] InvalidFilePath, #[error("Already bound by another service")] LoadBalancingAlreadyBound, #[error("Quota reached for user")] QuotaReached, #[error("No matching user key")] NoMatchingUserKey, #[cfg_attr(not(feature = "login"), expect(dead_code))] #[error("Unknown scheme (must be set to either http:// or https://)")] UnknownHttpScheme, #[error("Missing directory {0}")] MissingDirectory(PathBuf), #[error("Duplicate network CIDR {0}")] DuplicateNetworkCidr(IpNet), #[error("Tunneling unavailable")] TunnelingUnavailable, #[error("Tunneling not allowed")] TunnelingNotAllowed, #[error("Aliasing not allowed")] AliasingNotAllowed, #[error("Pool limit reached")] PoolLimitReached, #[error("Timed out opening tunneling channel")] TunnelingChannelTimeout, #[error("IP connection limit reached")] IpConnectionLimitReached, #[error("SSH error: {0}")] Ssh(#[from] russh::Error),}