From 152b712a62316b930c0d205795f7a2508531c227 Mon Sep 17 00:00:00 2001 From: Sandipan Dey Date: Wed, 2 Aug 2023 22:39:39 +0530 Subject: [PATCH] fix: url parser (#292) --- 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,