aboutsummaryrefslogtreecommitdiffstats
path: root/routes/lnurl.js
diff options
context:
space:
mode:
Diffstat (limited to 'routes/lnurl.js')
-rw-r--r--routes/lnurl.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/routes/lnurl.js b/routes/lnurl.js
index 6ca61c93..683899b0 100644
--- a/routes/lnurl.js
+++ b/routes/lnurl.js
@@ -30,6 +30,8 @@ const recipients = persist("data/recipients.json");
const lnurlPayments = persist("data/payments.json");
const withdrawals = persist("data/withdrawals.json");
+const { HOSTNAME: hostname } = process.env;
+
export const lnurlServer = lnurl.createServer(config.lnurl);
app.get("/url", async (req, res, next) => {
@@ -226,7 +228,7 @@ app.post("/pay", auth, async (req, res, next) => {
memo: comment,
username: recipients[secret].username
},
- req.hostname,
+ hostname,
user
);