From 5016160ac33f8d1c9bdef3fa131293793cb0b920 Mon Sep 17 00:00:00 2001 From: Alexey <247128645+axkurcom@users.noreply.github.com> Date: Wed, 7 Jan 2026 17:42:30 +0300 Subject: [PATCH] 1.0.1.2 --- src/transport/upstream.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/transport/upstream.rs b/src/transport/upstream.rs index 38525e5..4a68830 100644 --- a/src/transport/upstream.rs +++ b/src/transport/upstream.rs @@ -6,7 +6,7 @@ use std::time::Duration; use tokio::net::TcpStream; use tokio::sync::RwLock; use rand::Rng; -use tracing::{debug, warn, error}; +use tracing::{debug, warn, error, info}; use crate::config::{UpstreamConfig, UpstreamType}; use crate::error::{Result, ProxyError}; @@ -149,6 +149,8 @@ impl UpstreamManager { Ok(stream) }, UpstreamType::Socks4 { address, interface, user_id } => { + info!("Connecting to target {} via SOCKS4 proxy {}", target, address); + let proxy_addr: SocketAddr = address.parse() .map_err(|_| ProxyError::Config("Invalid SOCKS4 address".to_string()))?; @@ -178,6 +180,8 @@ impl UpstreamManager { Ok(stream) }, UpstreamType::Socks5 { address, interface, username, password } => { + info!("Connecting to target {} via SOCKS5 proxy {}", target, address); + let proxy_addr: SocketAddr = address.parse() .map_err(|_| ProxyError::Config("Invalid SOCKS5 address".to_string()))?;