From 6248acacd7dd8ab23b3b900e82b28ef1eef09bd7 Mon Sep 17 00:00:00 2001 From: Riccardo Casatta Date: Mon, 15 Apr 2024 21:43:33 +0200 Subject: [PATCH] Option to skip domain verification For integration testing using regtest the domain verification can be skipped --- src/entity.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/entity.rs b/src/entity.rs index f3a246c..37f295d 100644 --- a/src/entity.rs +++ b/src/entity.rs @@ -31,6 +31,10 @@ pub fn verify_asset_link(asset: &Asset) -> Result<()> { fn verify_domain_link(asset: &Asset, domain: &str) -> Result<()> { verify_domain_name(domain).context("invalid domain name")?; + if std::env::var_os("SKIP_VERIFY_DOMAIN_LINK").is_some() { + return Ok(()); + } + // TODO tor proxy for accessing onion let asset_id = asset.id().to_hex();