net/hosts: Add onion note about Arti.

This commit is contained in:
parazyd
2023-06-21 19:31:30 +02:00
parent 672185cf44
commit 949b0bb1e9

View File

@@ -282,7 +282,7 @@ fn filter_non_resolving(connection_addr: Url, input_addrs: HashMap<Url, Vec<IpAd
/// Validate a given .onion address. Currently it just checks that the
/// length and encoding are ok, and does not do any deeper check. Should
/// be fixed in the future.
/// be fixed in the future when arti is ready.
fn is_valid_onion(onion: &str) -> bool {
let onion = match onion.strip_suffix(".onion") {
Some(s) => s,