From fc3b329b9421f9bf9932c005656081c5f6e3ef32 Mon Sep 17 00:00:00 2001 From: Yonle Date: Sun, 18 Feb 2024 19:18:12 +0700 Subject: [PATCH] http.js: another wordings. Signed-off-by: Yonle --- http.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/http.js b/http.js index 82e1b2b..b5d5914 100644 --- a/http.js +++ b/http.js @@ -67,10 +67,10 @@ server.on('request', (req, res) => { res.write(`\nI have ${wss.clients.size} clients currently connected to this bouncer${(process.env.CLUSTERS || config.clusters) > 1 ? " on this cluster" : ""}.\n`); if (config?.authorized_keys?.length) res.write("\nNOTE: This relay has configured for personal use only. Only authorized users could use this bostr relay.\n"); res.write(`\nConnect to this bouncer with nostr client: ${req.headers["x-forwarded-proto"]?.replace(/http/i, "ws") || (server.isStandaloneHTTPS ? "wss" : "ws")}://${req.headers.host}${req.url}`); - res.write(`\n\n- To make this bouncer only send specific event kinds, Connect:`); + res.write(`\n\n- To make this bouncer only send specific kind of event, Connect:`); res.write(`\n ${req.headers["x-forwarded-proto"]?.replace(/http/i, "ws") || (server.isStandaloneHTTPS ? "wss" : "ws")}://${req.headers.host}${req.url}?accept=0,1`); res.write(`\n (Will only send events with kind 0, and 1)`); - res.write(`\n- To make this bouncer not sending some specific kind of events, Connect:`); + res.write(`\n- To make this bouncer not sending specific kind of events, Connect:`); res.write(`\n ${req.headers["x-forwarded-proto"]?.replace(/http/i, "ws") || (server.isStandaloneHTTPS ? "wss" : "ws")}://${req.headers.host}${req.url}?reject=3,6,7`); res.write(`\n (Will not send events with kind 3, 6, and 7)`); res.end(`\n\n---\nPowered by Bostr (${version}) - Open source Nostr bouncer\nhttps://github.com/Yonle/bostr`);