Skip to content

Commit

Permalink
chore: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed May 4, 2024
1 parent 56791de commit 2db9a90
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions socks5-client/src/encoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,22 +188,22 @@ impl Encoding for HostName {
HostName::Dns(name) => {
DOMAIN.encode(writer)?;
name.to_string()
},
}
#[cfg(feature = "tor")]
HostName::Tor(addr) => {
DOMAIN.encode(writer)?;
addr.to_string()
},
}
#[cfg(feature = "i2p")]
HostName::I2p(addr) => {
DOMAIN.encode(writer)?;
addr.to_string()
},
}
#[cfg(feature = "nym")]
HostName::Nym(addr) => {
DOMAIN.encode(writer)?;
addr.to_string()
},
}
_ => return Err(EncodingError::AddrNotSupported),
};
let len =
Expand Down

0 comments on commit 2db9a90

Please sign in to comment.