mirror of
https://github.com/italicsjenga/valence.git
synced 2025-01-11 07:11:30 +11:00
Better "encryption enabled" message in packet_inspector
This commit is contained in:
parent
03e89adeb8
commit
9b8fbc5d82
|
@ -154,7 +154,10 @@ async fn handle_connection(client: TcpStream, cli: Cli) -> anyhow::Result<()> {
|
||||||
cli.rw_packet::<EncryptionResponse>(&mut client_read, &mut server_write)
|
cli.rw_packet::<EncryptionResponse>(&mut client_read, &mut server_write)
|
||||||
.await?;
|
.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! {
|
return tokio::select! {
|
||||||
c2s = passthrough(client_read.into_inner(), server_write) => c2s,
|
c2s = passthrough(client_read.into_inner(), server_write) => c2s,
|
||||||
|
|
Loading…
Reference in a new issue