summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSebastian Holmin <sebastian.holmin@mullvad.net>2024-02-05 17:31:43 +0100
committerDavid Lönnhager <david.l@mullvad.net>2024-02-08 15:52:45 +0100
commit608d47ee32d815bc8c2a428d7dde3d1955496114 (patch)
tree6d1063d59eee7d199cf2723c7daf63fe5faab3dd
parentbc51bf6295f0c7fca273d720c624fbfee305e910 (diff)
downloadmullvadvpn-608d47ee32d815bc8c2a428d7dde3d1955496114.tar.xz
mullvadvpn-608d47ee32d815bc8c2a428d7dde3d1955496114.zip
Fix typos
-rw-r--r--talpid-tunnel/src/lib.rs2
-rw-r--r--talpid-wireguard/src/connectivity_check.rs2
-rw-r--r--talpid-wireguard/src/ping_monitor/icmp.rs2
-rw-r--r--talpid-wireguard/src/wireguard_kernel/netlink_tunnel.rs2
4 files changed, 5 insertions, 3 deletions
diff --git a/talpid-tunnel/src/lib.rs b/talpid-tunnel/src/lib.rs
index 8a916c668d..81cb85b6da 100644
--- a/talpid-tunnel/src/lib.rs
+++ b/talpid-tunnel/src/lib.rs
@@ -19,7 +19,7 @@ pub struct TunnelArgs<'a, L>
where
L: (Fn(TunnelEvent) -> BoxFuture<'static, ()>) + Send + Clone + Sync + 'static,
{
- /// Toktio runtime handle.
+ /// Tokio runtime handle.
pub runtime: tokio::runtime::Handle,
/// Resource directory path.
pub resource_dir: &'a Path,
diff --git a/talpid-wireguard/src/connectivity_check.rs b/talpid-wireguard/src/connectivity_check.rs
index 8f44b9b1c6..a7b09778d9 100644
--- a/talpid-wireguard/src/connectivity_check.rs
+++ b/talpid-wireguard/src/connectivity_check.rs
@@ -62,7 +62,7 @@ pub enum Error {
///
/// The connectivity monitor will start sending pings and start the countdown to `PING_TIMEOUT` in
/// the following cases:
-/// - In case that we have observed a bump in the outgoing traffic but no coressponding incoming
+/// - In case that we have observed a bump in the outgoing traffic but no corresponding incoming
/// traffic for longer than `BYTES_RX_TIMEOUT`, then the monitor will start pinging.
/// - In case that no increase in outgoing or incoming traffic has been observed for longer than
/// `TRAFFIC_TIMEOUT`, then the monitor will start pinging as well.
diff --git a/talpid-wireguard/src/ping_monitor/icmp.rs b/talpid-wireguard/src/ping_monitor/icmp.rs
index a0afc8a98c..ad31349799 100644
--- a/talpid-wireguard/src/ping_monitor/icmp.rs
+++ b/talpid-wireguard/src/ping_monitor/icmp.rs
@@ -1,6 +1,7 @@
use byteorder::{NetworkEndian, WriteBytesExt};
use rand::Rng;
use socket2::{Domain, Protocol, Socket, Type};
+
use std::{
io::{self, Write},
net::{Ipv4Addr, SocketAddr},
@@ -59,6 +60,7 @@ pub struct Pinger {
}
impl Pinger {
+ /// Creates a new `Pinger`.
pub fn new(
addr: Ipv4Addr,
#[cfg(not(target_os = "windows"))] interface_name: String,
diff --git a/talpid-wireguard/src/wireguard_kernel/netlink_tunnel.rs b/talpid-wireguard/src/wireguard_kernel/netlink_tunnel.rs
index b1159bb6de..579bcde65a 100644
--- a/talpid-wireguard/src/wireguard_kernel/netlink_tunnel.rs
+++ b/talpid-wireguard/src/wireguard_kernel/netlink_tunnel.rs
@@ -122,7 +122,7 @@ impl Tunnel for NetlinkTunnel {
wg.set_config(interface_index, &config)
.await
.map_err(|err| {
- log::error!("Failed to fetch WireGuard device config: {}", err);
+ log::error!("Failed to set WireGuard device config: {}", err);
TunnelError::SetConfigError
})
})