mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
net/hosts: Add onion note about Arti.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user