Print forward address in start message

This commit is contained in:
zonyitoo
2019-12-27 21:02:00 +08:00
parent 97a1c725cc
commit d08bfff00f
2 changed files with 10 additions and 2 deletions
+5 -1
View File
@@ -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?;
+5 -1
View File
@@ -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