fix: RouterOS sniffer interface param is filter-interface not interface

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2GT-Rich
2026-05-16 16:30:09 -07:00
co-authored by Claude Sonnet 4.6
parent 64ab6ccf27
commit 6690ac9118
+1 -1
View File
@@ -1799,7 +1799,7 @@ router.post('/:id/tools/capture', requireWrite, async (req: Request, res: Respon
// Stop any previous capture before reconfiguring
await client.execute('/tool/sniffer/stop').catch(() => {});
const setParams: Record<string, string> = { 'file-name': fileName, 'file-limit': '10240' };
if (iface) setParams['interface'] = iface;
if (iface) setParams['filter-interface'] = iface;
if (filter_ip) setParams['filter-ip-address'] = filter_ip;
await client.execute('/tool/sniffer/set', setParams);
console.log(`[capture] sniffer configured; starting ${captureSec}s capture`);