diff --git a/src/probe-companion.ts b/src/probe-companion.ts deleted file mode 100644 index da023edd..00000000 --- a/src/probe-companion.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { getActiveHeadscaleCredentials } from 'officerdb'; - -const creds = await getActiveHeadscaleCredentials(1); -if (!creds) { console.log('no active server'); process.exit(0); } -console.log('server:', creds.name, creds.url, 'key prefix:', creds.apiKey.slice(0, 9) + '…', 'len', creds.apiKey.length); -for (const path of ['/ping', '/health', '/api/v1/enroll/invites']) { - const res = await fetch(`${creds.url}/officer-api${path}`, { - headers: { authorization: `Bearer ${creds.apiKey}`, accept: 'application/json' }, - }); - console.log(path, res.status, (await res.text()).slice(0, 200)); -}