chore(socks5): Hide internal method
This commit is contained in:
parent
79c6e8eb61
commit
f136adb65a
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ pub async fn run_server(bind: SocketAddr) -> Result<Socks5Listener, anyhow::Erro
|
|||
Ok(listener)
|
||||
}
|
||||
|
||||
pub fn new_reply(error: &ReplyError, sock_addr: SocketAddr) -> Vec<u8> {
|
||||
fn new_reply(error: &ReplyError, sock_addr: SocketAddr) -> Vec<u8> {
|
||||
let (addr_type, mut ip_oct, mut port) = match sock_addr {
|
||||
SocketAddr::V4(sock) => (
|
||||
consts::SOCKS5_ADDR_TYPE_IPV4,
|
||||
|
|
Loading…
Reference in a new issue