diff --git a/src/lib.rs b/src/lib.rs index 0cd1265..25f992d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -152,7 +152,7 @@ pub enum SocksError { #[cfg(feature = "socks4")] #[error("Error with reply: {0}.")] - ReplySocks4Error(#[from] socks3::ReplyError), + ReplySocks4Error(#[from] socks4::ReplyError), #[error("Argument input error: `{0}`.")] ArgumentInputError(&'static str), diff --git a/src/socks4/client.rs b/src/socks4/client.rs index 6409524..77f0c7e 100644 --- a/src/socks4/client.rs +++ b/src/socks4/client.rs @@ -1,6 +1,6 @@ #[forbid(unsafe_code)] use crate::read_exact; -use crate::socks3::{consts, ReplyError, Socks4Command}; +use crate::socks4::{consts, ReplyError, Socks4Command}; use crate::util::target_addr::{TargetAddr, ToTargetAddr}; use crate::{Result, SocksError, SocksError::ReplySocks4Error}; use anyhow::Context;