diff options
Diffstat (limited to 'karld/src/interface.rs')
-rw-r--r-- | karld/src/interface.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/karld/src/interface.rs b/karld/src/interface.rs index 99ef594..127c0db 100644 --- a/karld/src/interface.rs +++ b/karld/src/interface.rs @@ -1,5 +1,5 @@ use crate::handle_packet; -use karlcommon::{socket_path, ClientboundPacket, ServerboundPacket}; +use karlcommon::{socket_path, version, ClientboundPacket, ServerboundPacket}; use log::{debug, error, info, warn}; use std::io; use std::io::{BufRead, BufReader, ErrorKind, Write}; @@ -31,7 +31,7 @@ fn handle_connection(id: u32, mut stream: UnixStream) -> io::Result<()> { let (responder, responses) = crossbeam_channel::unbounded(); responder .send(ClientboundPacket::Handshake { - version: env!("CARGO_PKG_VERSION").to_string(), + version: version!(), }) .unwrap(); thread::spawn(move || { |