diff options
| -rw-r--r-- | talpid-tunnel-config-client/examples/psk-exchange.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/talpid-tunnel-config-client/examples/psk-exchange.rs b/talpid-tunnel-config-client/examples/psk-exchange.rs index 48643805fc..bbf1e71fc7 100644 --- a/talpid-tunnel-config-client/examples/psk-exchange.rs +++ b/talpid-tunnel-config-client/examples/psk-exchange.rs @@ -10,7 +10,7 @@ use talpid_types::net::wireguard::{PrivateKey, PublicKey}; #[tokio::main] async fn main() { let mut args = std::env::args().skip(1); - let tuncfg_server_ip: IpAddr = args + let tuncfg_server_ip = args .next() .expect("Give tuncfg server IP as first argument") .parse() @@ -24,7 +24,7 @@ async fn main() { let ephemeral_private_key = PrivateKey::new_from_random(); let ephemeral_peer = talpid_tunnel_config_client::request_ephemeral_peer( - tuncfg_server_ip, + IpAddr::V4(tuncfg_server_ip), public_key, // Parent connection's public key. ephemeral_private_key.public_key(), true, // Whether to negotiate a "PQ-safe" PSK. |
