diff --git a/wallets/lnbits/server.js b/wallets/lnbits/server.js index 5bc72826..310dc2d1 100644 --- a/wallets/lnbits/server.js +++ b/wallets/lnbits/server.js @@ -33,7 +33,7 @@ export async function createInvoice ( out: false }) - let hostname = url.replace(/^https?:\/\//, '') + let hostname = url.replace(/^https?:\/\//, '').replace(/\/+$/, '') const agent = getAgent({ hostname }) if (process.env.NODE_ENV !== 'production' && hostname.startsWith('localhost:')) {