feat: Add env flag to disable WALLET DNS record lookup
All checks were successful
Build Docker / Build Image (push) Successful in 47s
All checks were successful
Build Docker / Build Image (push) Successful in 47s
This commit is contained in:
@@ -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"):
|
||||
|
||||
@@ -2,4 +2,5 @@ HSD_API=123480615465636893475aCwyaae6s45
|
||||
HSD_IP=localhost
|
||||
THEME=black
|
||||
SHOW_EXPIRED=false
|
||||
EXPLORER_TX=https://shakeshift.com/transaction/
|
||||
EXPLORER_TX=https://shakeshift.com/transaction/
|
||||
DISABLE_WALLETDNS=false
|
||||
Reference in New Issue
Block a user