diff --git a/account.py b/account.py index 2ad1d7a..3079b4a 100644 --- a/account.py +++ b/account.py @@ -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"): diff --git a/example.env b/example.env index 4b86013..a096ed9 100644 --- a/example.env +++ b/example.env @@ -2,4 +2,5 @@ HSD_API=123480615465636893475aCwyaae6s45 HSD_IP=localhost THEME=black SHOW_EXPIRED=false -EXPLORER_TX=https://shakeshift.com/transaction/ \ No newline at end of file +EXPLORER_TX=https://shakeshift.com/transaction/ +DISABLE_WALLETDNS=false \ No newline at end of file