chore: fix some comments

Signed-off-by: drawdrop <cricis@icloud.com>
This commit is contained in:
drawdrop
2024-08-12 23:05:05 +08:00
committed by ty
parent edac97d1fe
commit e43ee2a346
3 changed files with 5 additions and 5 deletions

View File

@@ -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
@@ -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
);
}

View File

@@ -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(

View File

@@ -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",
));
}
};
@@ -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",
));
}
};