remove stray companion probe script
This commit is contained in:
@@ -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));
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user