Skip to content

Commit

Permalink
chore: fix some comments
Browse files Browse the repository at this point in the history
Signed-off-by: drawdrop <[email protected]>
  • Loading branch information
drawdrop authored and zonyitoo committed Aug 12, 2024
1 parent edac97d commit e43ee2a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions crates/shadowsocks-service/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ impl ConfigType {
self == ConfigType::Manager
}

/// Chec if it is online config type (SIP008)
/// Check if it is online config type (SIP008)
#[cfg(feature = "local-online-config")]
pub fn is_online_config(self) -> bool {
self == ConfigType::OnlineConfig
Expand Down Expand Up @@ -3144,7 +3144,7 @@ pub fn read_variable_field_value(value: &str) -> Cow<'_, str> {
Ok(value) => return value.into(),
Err(err) => {
warn!(
"couldn't read password from environemnt variable {}, error: {}",
"couldn't read password from environment variable {}, error: {}",
var_name, err
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ fn get_original_destination_addr(s: &TcpStream) -> io::Result<SocketAddr> {

unsafe {
let (_, target_addr) = SockAddr::try_init(|target_addr, target_addr_len| {
// No suffcient method to know whether the destination IPv4 or IPv6.
// No sufficient method to know whether the destination IPv4 or IPv6.
// Follow the method in shadowsocks-libev.

let ret = libc::getsockopt(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ impl Socks5TcpHandler {

return Err(Error::new(
ErrorKind::Other,
"Username/Password Authentication Initial request uname contains invaid characters",
"Username/Password Authentication Initial request uname contains invalid characters",
));
}
};
Expand All @@ -137,7 +137,7 @@ impl Socks5TcpHandler {

return Err(Error::new(
ErrorKind::Other,
"Username/Password Authentication Initial request passwd contains invaid characters",
"Username/Password Authentication Initial request passwd contains invalid characters",
));
}
};
Expand Down

0 comments on commit e43ee2a

Please sign in to comment.