Impl Eq and PartialEq for TargetAddr
Opened this issue · 0 comments
Hirrolot commented
/// A description of a connection target.
#[derive(Debug, Clone, Eq, PartialEq)]
pub enum TargetAddr {
/// Connect to an IP address.
Ip(SocketAddr),
/// Connect to a fully qualified domain name.
///
/// The domain name will be passed along to the proxy server and DNS lookup
/// will happen there.
Domain(String, u16),
}