summaryrefslogtreecommitdiffhomepage
path: root/talpid-core/src
diff options
context:
space:
mode:
authorAlexander Seiler <seileralex@gmail.com>2023-03-26 03:49:21 +0200
committerOskar Nyberg <3668602+raksooo@users.noreply.github.com>2023-03-27 14:08:15 +0000
commita7f820aedc61a7c1cc9e857b21dc45c8dcf20f93 (patch)
treed440fa99e7bbb869a3b5c65fb0957380dd53c792 /talpid-core/src
parentddbf915cd7377a2a7900e6b63fc035d1db1c83fc (diff)
downloadmullvadvpn-a7f820aedc61a7c1cc9e857b21dc45c8dcf20f93.tar.xz
mullvadvpn-a7f820aedc61a7c1cc9e857b21dc45c8dcf20f93.zip
Fix many typos
Signed-off-by: Alexander Seiler <seileralex@gmail.com>
Diffstat (limited to 'talpid-core/src')
-rw-r--r--talpid-core/src/dns/linux/resolvconf.rs2
-rw-r--r--talpid-core/src/firewall/macos.rs6
-rw-r--r--talpid-core/src/firewall/mod.rs2
-rw-r--r--talpid-core/src/split_tunnel/windows/mod.rs2
4 files changed, 6 insertions, 6 deletions
diff --git a/talpid-core/src/dns/linux/resolvconf.rs b/talpid-core/src/dns/linux/resolvconf.rs
index dda8a04518..4c7c066f20 100644
--- a/talpid-core/src/dns/linux/resolvconf.rs
+++ b/talpid-core/src/dns/linux/resolvconf.rs
@@ -27,7 +27,7 @@ pub enum Error {
#[error(display = "Using 'resolvconf' to delete a record failed")]
DeleteRecord,
- #[error(display = "Detected dnsmasq is runing and misconfigured")]
+ #[error(display = "Detected dnsmasq is running and misconfigured")]
DnsmasqMisconfiguration,
#[error(display = "Current /etc/resolv.conf is not generated by resolvconf")]
diff --git a/talpid-core/src/firewall/macos.rs b/talpid-core/src/firewall/macos.rs
index 6ca12d0924..6716e0542d 100644
--- a/talpid-core/src/firewall/macos.rs
+++ b/talpid-core/src/firewall/macos.rs
@@ -55,7 +55,7 @@ impl Firewall {
pub fn reset_policy(&mut self) -> Result<()> {
// Implemented this way to not early return on an error.
// We always want all three methods to run, and then return
- // the first error it encounterd, if any.
+ // the first error it encountered, if any.
self.remove_rules()
.and(self.remove_anchor())
.and(self.restore_state())
@@ -570,7 +570,7 @@ impl Firewall {
.build()?,
);
- // Outgoing neigbor advertisement to fe80::/10`
+ // Outgoing neighbor advertisement to fe80::/10`
rules.push(
ndp_rule_builder
.clone()
@@ -580,7 +580,7 @@ impl Firewall {
.build()?,
);
- // Incoming neigbor advertisement from anywhere
+ // Incoming neighbor advertisement from anywhere
rules.push(
ndp_rule_builder
.clone()
diff --git a/talpid-core/src/firewall/mod.rs b/talpid-core/src/firewall/mod.rs
index dcd0c2bfb8..5167685a10 100644
--- a/talpid-core/src/firewall/mod.rs
+++ b/talpid-core/src/firewall/mod.rs
@@ -138,7 +138,7 @@ pub enum FirewallPolicy {
allow_lan: bool,
/// Host that should be reachable while in the blocked state.
allowed_endpoint: Option<AllowedEndpoint>,
- /// Desination port for DNS traffic redirection. Traffic destined to `127.0.0.1:53` will be
+ /// Destination port for DNS traffic redirection. Traffic destined to `127.0.0.1:53` will be
/// redirected to `127.0.0.1:$dns_redirect_port`.
#[cfg(target_os = "macos")]
dns_redirect_port: u16,
diff --git a/talpid-core/src/split_tunnel/windows/mod.rs b/talpid-core/src/split_tunnel/windows/mod.rs
index 9e091e8f01..5210bb98b8 100644
--- a/talpid-core/src/split_tunnel/windows/mod.rs
+++ b/talpid-core/src/split_tunnel/windows/mod.rs
@@ -306,7 +306,7 @@ impl SplitTunnel {
log::error!(
"{}",
error.display_chain_with_msg(
- "get_overlapped_result failed for dequed event"
+ "get_overlapped_result failed for dequeued event"
),
);
}