diff --git a/server.js b/server.js index 29acfbc..c659d66 100644 --- a/server.js +++ b/server.js @@ -5117,11 +5117,11 @@ ${html} const subs = loadWebhookSubs(); const exists = subs.find(s => s.asn === asn && s.endpoint_url === endpoint_url); if (exists) { res.writeHead(200); return res.end(JSON.stringify({id: exists.id, already_exists: true, secret_key: exists.secret})); } - const secret = crypto.randomBytes(32).toString('hex'); + const webhookToken = crypto.randomBytes(32).toString('hex'); const entry = { id: crypto.randomBytes(8).toString('hex'), asn, endpoint_url, - secret, + secret: webhookToken, timeout_ms: timeout_ms || 10000, max_retries: max_retries || 5, active: true,