it is not removing the damn rule, added logging rq

This commit is contained in:
2026-03-23 17:08:07 +02:00
parent 98d387bcd2
commit 3554b5984f
2 changed files with 8 additions and 3 deletions

View File

@@ -12,7 +12,9 @@ router.post('/', (req, res) => {
const body = req.body || {};
const event = body.event || '';
const data = body || {};
info(`Webhook: ${event}\n${JSON.stringify(body)}`);
info(`Webhook: ${event}\nbody: ${JSON.stringify(body)}`);
info('headers: ' + JSON.stringify(req.headers))
return;
try {
if (event === 'created: Allocation') {
enqueueNatAdd(data.ip, data.port);