50c 3.9.5 → 3.9.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/50c.js +6 -0
- package/lib/backdoor-checker.js +992 -227
- package/package.json +7 -2
package/bin/50c.js
CHANGED
|
@@ -1807,6 +1807,12 @@ async function handleLocalTools(request) {
|
|
|
1807
1807
|
try {
|
|
1808
1808
|
const { runAudit } = require('../lib/backdoor-checker.js');
|
|
1809
1809
|
const result = await runAudit({ skipGeo: args.skipGeo });
|
|
1810
|
+
// Backward compat: v2 split uniqueExternalIPs into IPv4/IPv6
|
|
1811
|
+
if (result && result.summary && !result.summary.uniqueExternalIPs) {
|
|
1812
|
+
result.summary.uniqueExternalIPs =
|
|
1813
|
+
(result.summary.uniqueExternalIPv4 || 0) +
|
|
1814
|
+
(result.summary.uniqueExternalIPv6 || 0);
|
|
1815
|
+
}
|
|
1810
1816
|
return mcpResult(id, result);
|
|
1811
1817
|
} catch (e) {
|
|
1812
1818
|
return mcpResult(id, { ok: false, error: e.message });
|