aboutsummaryrefslogtreecommitdiff
path: root/src/interface.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/interface.rs')
-rw-r--r--src/interface.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/interface.rs b/src/interface.rs
index 568c450..0020736 100644
--- a/src/interface.rs
+++ b/src/interface.rs
@@ -34,6 +34,11 @@ fn handle_connection(
) -> io::Result<()> {
let mut reader = BufReader::new(stream.try_clone()?);
let (responder, responses) = crossbeam_channel::unbounded();
+ responder
+ .send(ClientboundPacket::Handshake {
+ version: env!("CARGO_PKG_VERSION").to_string(),
+ })
+ .unwrap();
thread::spawn(move || {
for m in responses {
debug!("{id} -> {m:?}");