mirror of
https://github.com/shadowsocks/shadowsocks-rust.git
synced 2026-02-09 01:59:16 +08:00
@@ -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
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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",
|
||||
));
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user