Skip to content

Commit 289cbf6

Browse files
committed
Lower log level for connecting, fixed #75
1 parent 2a5d2ed commit 289cbf6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/relay/tcprelay/server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ impl TcpRelayClientPending {
6565
/// Connect to the remote server
6666
#[inline]
6767
fn connect_remote(addr: Address, timeout: Option<Duration>) -> BoxIoFuture<TcpStream> {
68-
info!("Connecting to remote {}", addr);
68+
debug!("Connecting to remote {}", addr);
6969

7070
match addr {
7171
Address::SocketAddress(saddr) => {

src/relay/tcprelay/socks5_local.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ fn handle_socks5_client(s: TcpStream, conf: Rc<ServerConfig>, udp_conf: UdpConfi
143143
let addr = header.address;
144144
match header.command {
145145
socks5::Command::TcpConnect => {
146-
info!("CONNECT {}", addr);
146+
debug!("CONNECT {}", addr);
147147
handle_socks5_connect((r, w), cloned_client_addr, addr, conf)
148148
}
149149
socks5::Command::TcpBind => {
@@ -155,7 +155,7 @@ fn handle_socks5_client(s: TcpStream, conf: Rc<ServerConfig>, udp_conf: UdpConfi
155155
}
156156
socks5::Command::UdpAssociate => {
157157
if udp_conf.enable_udp {
158-
info!("UDP ASSOCIATE {}", addr);
158+
debug!("UDP ASSOCIATE {}", addr);
159159
let fut = TcpResponseHeader::new(socks5::Reply::Succeeded, From::from(*udp_conf.client_addr))
160160
.write_to(w)
161161
.and_then(flush)

0 commit comments

Comments
 (0)