diff --git a/crates/shadowsocks-service/src/config.rs b/crates/shadowsocks-service/src/config.rs index d44406477b76..747ce1f6a3c3 100644 --- a/crates/shadowsocks-service/src/config.rs +++ b/crates/shadowsocks-service/src/config.rs @@ -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 ); } diff --git a/crates/shadowsocks-service/src/local/redir/tcprelay/sys/unix/linux.rs b/crates/shadowsocks-service/src/local/redir/tcprelay/sys/unix/linux.rs index 629f6b8b910d..f0d32c60086f 100644 --- a/crates/shadowsocks-service/src/local/redir/tcprelay/sys/unix/linux.rs +++ b/crates/shadowsocks-service/src/local/redir/tcprelay/sys/unix/linux.rs @@ -115,7 +115,7 @@ fn get_original_destination_addr(s: &TcpStream) -> io::Result { 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( diff --git a/crates/shadowsocks-service/src/local/socks/server/socks5/tcprelay.rs b/crates/shadowsocks-service/src/local/socks/server/socks5/tcprelay.rs index 77d03d790ab5..109968e4b430 100644 --- a/crates/shadowsocks-service/src/local/socks/server/socks5/tcprelay.rs +++ b/crates/shadowsocks-service/src/local/socks/server/socks5/tcprelay.rs @@ -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", )); } };