diff --git a/common/Cargo.toml b/common/Cargo.toml index 059de721..95b83bc8 100644 --- a/common/Cargo.toml +++ b/common/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "common" -version = "1.2.0" +version = "1.2.1" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/vnt-cli/Cargo.toml b/vnt-cli/Cargo.toml index f67abb36..cbb92d8e 100644 --- a/vnt-cli/Cargo.toml +++ b/vnt-cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "vnt-cli" -version = "1.2.0" +version = "1.2.1" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/vnt-jni/Cargo.toml b/vnt-jni/Cargo.toml index 399ad8f5..20267d6a 100644 --- a/vnt-jni/Cargo.toml +++ b/vnt-jni/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "vnt-jni" -version = "1.2.0" +version = "1.2.1" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/vnt/Cargo.toml b/vnt/Cargo.toml index 5f25604b..26ca4851 100644 --- a/vnt/Cargo.toml +++ b/vnt/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "vnt" -version = "1.2.0" +version = "1.2.1" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/vnt/src/handle/handshake_handler.rs b/vnt/src/handle/handshake_handler.rs index c0aa4223..16b76e9b 100644 --- a/vnt/src/handle/handshake_handler.rs +++ b/vnt/src/handle/handshake_handler.rs @@ -11,7 +11,6 @@ use crate::proto::message::{HandshakeRequest, HandshakeResponse, SecretHandshake use crate::protocol::{MAX_TTL, NetPacket, Protocol, service_packet, Version}; use crate::protocol::body::ENCRYPTION_RESERVED; -const VERSION: &'static str = "1.2.0"; pub enum HandshakeEnum { NotSecret, @@ -24,7 +23,7 @@ pub enum HandshakeEnum { fn handshake_request_packet(secret: bool) -> crate::Result>> { let mut request = HandshakeRequest::new(); request.secret = secret; - request.version = VERSION.to_string(); + request.version = crate::VNT_VERSION.to_string(); let bytes = request.write_to_bytes()?; let buf = vec![0u8; 12 + bytes.len()]; let mut net_packet = NetPacket::new(buf)?; diff --git a/vnt/src/handle/registration_handler.rs b/vnt/src/handle/registration_handler.rs index 14d1131b..c6c26b62 100644 --- a/vnt/src/handle/registration_handler.rs +++ b/vnt/src/handle/registration_handler.rs @@ -193,7 +193,7 @@ fn registration_request_packet( request.virtual_ip = ip.into(); request.allow_ip_change = allow_ip_change; request.is_fast = is_fast; - request.version = "1.2.0".to_string(); + request.version = crate::VNT_VERSION.to_string(); request.client_secret = client_secret; let bytes = request.write_to_bytes()?; let buf = vec![0u8; 12 + bytes.len() + ENCRYPTION_RESERVED];