chore(socks5): Hide internal method

This commit is contained in:
Σrebe - Romain GERARD 2023-10-27 21:11:24 +02:00
parent 79c6e8eb61
commit f136adb65a
No known key found for this signature in database
GPG key ID: 7A42B4B97E0332F4

View file

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