From 6090010cbde5f907f1618a4ce65fde938500f199 Mon Sep 17 00:00:00 2001 From: alterdekim Date: Thu, 26 Sep 2024 03:00:21 +0300 Subject: [PATCH] Changes to be committed: modified: src/client.rs --- src/client.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client.rs b/src/client.rs index 043d988..ac8c08b 100644 --- a/src/client.rs +++ b/src/client.rs @@ -102,10 +102,10 @@ pub async fn client_mode(client_config: ClientConfiguration, fd: i32) { }); let s_cipher = cipher_shared.clone(); + let pkey = BASE64_STANDARD.decode(client_config.client.public_key).unwrap(); + let handshake = UDPVpnHandshake{ public_key: pkey, request_ip: client_config.client.address.parse::().unwrap() }; let socket_writer_task = tokio::spawn(async move { - let pkey = BASE64_STANDARD.decode(client_config.client.public_key).unwrap(); - let handshake = UDPVpnHandshake{ public_key: pkey, request_ip: client_config.client.address.parse::().unwrap() }; let mut nz = 0; while nz < 25 { sock_snd.send(&handshake.serialize()).await.unwrap();