Changes to be committed:

modified:   src/client.rs
This commit is contained in:
Michael Wain 2024-08-25 18:59:17 +03:00
parent fbb594de97
commit 5686ed0f45

View File

@ -154,7 +154,12 @@ pub async fn client_mode(client_config: ClientConfiguration) {
let pkey = BASE64_STANDARD.decode(client_config.client.public_key).unwrap(); let pkey = BASE64_STANDARD.decode(client_config.client.public_key).unwrap();
let handshake = UDPVpnHandshake{ public_key: pkey, request_ip: client_config.client.address.parse::<Ipv4Addr>().unwrap() }; let handshake = UDPVpnHandshake{ public_key: pkey, request_ip: client_config.client.address.parse::<Ipv4Addr>().unwrap() };
let nz = 0;
while nz < 25 {
sock_snd.send(&handshake.serialize()).await.unwrap(); sock_snd.send(&handshake.serialize()).await.unwrap();
nz += 1
}
//sock_snd.send(&handshake.serialize()).await.unwrap();
let s_cipher = cipher_shared.clone(); let s_cipher = cipher_shared.clone();
loop { loop {