feat: Add env flag to disable WALLET DNS record lookup
All checks were successful
Build Docker / Build Image (push) Successful in 47s

This commit is contained in:
2025-08-25 18:10:03 +10:00
parent 080c4402d8
commit 1c53547047
2 changed files with 6 additions and 1 deletions

View File

@@ -408,6 +408,10 @@ def check_hip2(domain: str):
if not check_address(address, False, True):
return 'Hip2: Lookup succeeded but address is invalid'
return address
# Check if DISABLE_WALLETDNS is set
if os.getenv("DISABLE_WALLETDNS","").lower() in ["1","true","yes"]:
return "No HIP2 record found for this domain"
# Try using WALLET TXT record
address = domainLookup.wallet_txt(domain)
if not address.startswith("hs1"):