Skip to content

Commit

Permalink
Add log dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
pinkisemils committed Sep 18, 2024
1 parent 3a3d035 commit 07ca909
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions mullvad-encrypted-dns-proxy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ workspace = true

[dependencies]
tokio = { workspace = true, features = [ "macros" ] }
log = { workspace = true }
byteorder = "1"
hickory-resolver = { version = "0.24.1", features = [ "dns-over-https-rustls" ]}
webpki-roots = "0.25.0"
Expand Down
8 changes: 6 additions & 2 deletions mullvad-encrypted-dns-proxy/src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ pub struct AvailableProxies {
pub xor: Vec<Xor>,
}


impl TryFrom<Vec<Ipv6Addr>> for AvailableProxies {
type Error = Error;

Expand All @@ -87,8 +86,13 @@ impl TryFrom<Vec<Ipv6Addr>> for AvailableProxies {
.xor
.push(Xor::try_from(ip).map_err(Error::InvalidXor)?);
}

// V1 types are ignored and so are errors
Ok(ProxyType::XorV1) | Err(_) => continue,
Ok(ProxyType::XorV1) => continue,

Err(ErrorUnknownType(unknown_proxy_type)) => {
log::error!("Unknown proxy type {unknown_proxy_type}");
}
}
}
if proxies.plain.is_empty() && proxies.xor.is_empty() {
Expand Down

0 comments on commit 07ca909

Please sign in to comment.