Allow more than 2-nd level domain in incoming ln-addresses (#914)
This commit is contained in:
parent
fc1a87f617
commit
193d037ad6
1 changed files with 1 additions and 1 deletions
|
|
@ -476,7 +476,7 @@ async def api_lnurlscan(code: str, wallet: WalletTypeInfo = Depends(get_key_type
|
|||
except:
|
||||
# parse internet identifier (user@domain.com)
|
||||
name_domain = code.split("@")
|
||||
if len(name_domain) == 2 and len(name_domain[1].split(".")) == 2:
|
||||
if len(name_domain) == 2 and len(name_domain[1].split(".")) >= 2:
|
||||
name, domain = name_domain
|
||||
url = (
|
||||
("http://" if domain.endswith(".onion") else "https://")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue