mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-06-23 01:20:52 +00:00
log::info adjustment
This commit is contained in:
parent
e5a645638a
commit
5bd62d3101
2 changed files with 10 additions and 10 deletions
|
@ -142,7 +142,7 @@ impl SocksProxyImpl {
|
|||
let response = handshake::Response::retrieve_from_stream(&mut self.server_inbuf.clone());
|
||||
if let Err(e) = &response {
|
||||
if e.kind() == std::io::ErrorKind::UnexpectedEof {
|
||||
// log::trace!("receive_server_hello_socks5 needs more data \"{}\"...", e);
|
||||
log::trace!("receive_server_hello_socks5 needs more data \"{}\"...", e);
|
||||
return Ok(());
|
||||
} else {
|
||||
return Err(e.to_string().into());
|
||||
|
@ -217,7 +217,7 @@ impl SocksProxyImpl {
|
|||
let response = protocol::Response::retrieve_from_stream(&mut self.server_inbuf.clone());
|
||||
if let Err(e) = &response {
|
||||
if e.kind() == std::io::ErrorKind::UnexpectedEof {
|
||||
// log::trace!("receive_connection_status needs more data \"{}\"...", e);
|
||||
log::trace!("receive_connection_status needs more data \"{}\"...", e);
|
||||
return Ok(());
|
||||
} else {
|
||||
return Err(e.to_string().into());
|
||||
|
@ -231,7 +231,7 @@ impl SocksProxyImpl {
|
|||
if self.command == protocol::Command::UdpAssociate {
|
||||
self.udp_associate = Some(SocketAddr::try_from(&response.address)?);
|
||||
assert!(self.data_buf.is_empty());
|
||||
// log::debug!("UDP associate: {}", response.address);
|
||||
log::trace!("UDP associate recieved address {}", response.address);
|
||||
}
|
||||
|
||||
self.server_outbuf.append(&mut self.data_buf);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue