Update text of traffic debug messages

Use "proxy client" instead of "remote client" to be clearer.
This commit is contained in:
Mahmoud Al-Qudsi 2023-08-29 15:36:05 -05:00
parent a716d0c3c0
commit 76d2a97011
1 changed files with 4 additions and 4 deletions

View File

@ -170,14 +170,14 @@ async fn forward(bind_ip: &str, local_port: i32, remote: String) -> Result<(), B
Ok(count) => {
if DEBUG.load(Ordering::Relaxed) {
eprintln!(
"Transferred {} bytes from remote client {} to upstream server",
"Transferred {} bytes from proxy client {} to upstream server",
count, client_addr
);
}
}
Err(err) => {
eprintln!(
"Error writing bytes from remote client {} to upstream server",
"Error writing bytes from proxy client {} to upstream server",
client_addr
);
eprintln!("{}", err);
@ -188,14 +188,14 @@ async fn forward(bind_ip: &str, local_port: i32, remote: String) -> Result<(), B
Ok(count) => {
if DEBUG.load(Ordering::Relaxed) {
eprintln!(
"Transferred {} bytes from upstream server to remote client {}",
"Transferred {} bytes from upstream server to proxy client {}",
count, client_addr
);
}
}
Err(err) => {
eprintln!(
"Error writing from upstream server to remote client {}!",
"Error writing from upstream server to proxy client {}!",
client_addr
);
eprintln!("{}", err);