From 5e50ba371cdae2ccc269d903440185efd9e35c00 Mon Sep 17 00:00:00 2001 From: Sandipan Dey Date: Wed, 2 Aug 2023 22:32:36 +0530 Subject: [PATCH] fix: url parser --- src/parsing/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parsing/index.ts b/src/parsing/index.ts index 5f8a08a..dc4e090 100644 --- a/src/parsing/index.ts +++ b/src/parsing/index.ts @@ -313,7 +313,7 @@ const getIntraLedgerPayResponse = ({ : destinationWithoutProtocol if (protocol.match(/^(http|\/\/)/iu)) { - const domain = new url.URL(destination).hostname + const domain = url.parse(destination).hostname if (!lnAddressDomains.find((lnAddressDomain) => lnAddressDomain === domain)) { return { valid: false,