moron, me
This commit is contained in:
@@ -13,8 +13,6 @@ router.post('/', (req, res) => {
|
|||||||
const event = body.event || '';
|
const event = body.event || '';
|
||||||
const data = body || {};
|
const data = body || {};
|
||||||
info(`Webhook: ${event}\nbody: ${JSON.stringify(body)}`);
|
info(`Webhook: ${event}\nbody: ${JSON.stringify(body)}`);
|
||||||
info('headers: ' + JSON.stringify(req.headers))
|
|
||||||
return;
|
|
||||||
try {
|
try {
|
||||||
if (event === 'created: Allocation') {
|
if (event === 'created: Allocation') {
|
||||||
enqueueNatAdd(data.ip, data.port);
|
enqueueNatAdd(data.ip, data.port);
|
||||||
|
|||||||
Reference in New Issue
Block a user