Checkpoint peering identity and opt-in discovery

This commit is contained in:
Codex committed 2026-10-13 22:00:54 +02:00
1 parent eba9b50e30
commit 47de081721
44 files changed
+1557 -55

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
'use strict';
const https = require('node:https');
const req = https.get({ host: '127.0.0.1', port: Number(process.env.PEER_PORT || 8093), path: '/health', rejectUnauthorized: false,
timeout: 4000 }, res => {
let text = ''; res.on('data', chunk => { text += chunk; if (text.length > 1000) req.destroy(); });
res.on('end', () => { try { if (res.statusCode !== 200 || !JSON.parse(text).ok) process.exitCode = 1; } catch { process.exitCode = 1; } });
});
req.on('timeout', () => req.destroy()); req.on('error', () => { process.exitCode = 1; });