mirror of
https://github.com/shadowsocks/shadowsocks-rust.git
synced 2026-11-06 16:14:11 +00:00
Print forward address in start message
This commit is contained in:
@@ -112,7 +112,11 @@ pub async fn run(context: SharedContext) -> io::Result<()> {
|
||||
let actual_local_addr = listener.local_addr().expect("Could not determine port bound to");
|
||||
|
||||
let mut servers = PingBalancer::new(context.clone(), ping::ServerType::Tcp).await;
|
||||
info!("ShadowSocks TCP Tunnel Listening on {}", actual_local_addr);
|
||||
info!(
|
||||
"ShadowSocks TCP Tunnel Listening on {}, forward to {}",
|
||||
actual_local_addr,
|
||||
context.config().forward.as_ref().unwrap()
|
||||
);
|
||||
|
||||
loop {
|
||||
let (socket, peer_addr) = listener.accept().await?;
|
||||
|
||||
@@ -260,7 +260,11 @@ pub async fn run(context: SharedContext) -> io::Result<()> {
|
||||
|
||||
let (mut r, mut w) = l.split();
|
||||
|
||||
info!("ShadowSocks UDP Tunnel listening on {}", local_addr);
|
||||
info!(
|
||||
"ShadowSocks UDP Tunnel listening on {}, forward to {}",
|
||||
local_addr,
|
||||
context.config().forward.as_ref().unwrap()
|
||||
);
|
||||
|
||||
// NOTE: Associations are only eliminated by expire time
|
||||
// So it may exhaust all available file descriptors
|
||||
|
||||
Reference in New Issue
Block a user