(case-insensitive; the slot name, not the hostname) // // RESPONSE // {"ok":true,"ms":int,…} on success // {"ok":false,"error":string} invalid id, no key, unresolvable, or no reply // // DEPENDS ON // include/partnership.php vv_pt_ping() → vv_pt_ssh(), vv_resolve_tailscale_ip() // ═══════════════════════════════════════════════════════════════════════════════════════════════ header('Content-Type: application/json'); header('Cache-Control: no-store, no-cache'); require_once dirname(__DIR__) . '/include/partnership.php'; $id = trim($_GET['id'] ?? ''); if (!preg_match('/^host\d+$/i', $id)) { echo json_encode(['ok' => false, 'error' => 'Invalid host id']); exit; } echo json_encode(vv_pt_ping($id));