Better "encryption enabled" message in packet_inspector

This commit is contained in:
Ryan 2022-10-19 01:42:32 -07:00
parent 03e89adeb8
commit 9b8fbc5d82

View file

@ -154,7 +154,10 @@ async fn handle_connection(client: TcpStream, cli: Cli) -> anyhow::Result<()> {
cli.rw_packet::<EncryptionResponse>(&mut client_read, &mut server_write)
.await?;
eprintln!("Encryption was enabled! I can't see what's going on anymore.");
eprintln!(
"Encryption was enabled! Packet contents are inaccessible to the proxy. \
Disable online_mode to fix this."
);
return tokio::select! {
c2s = passthrough(client_read.into_inner(), server_write) => c2s,