Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix some comments #1611

Merged
merged 1 commit into from
Aug 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading