Simplify pterodactyl to only show server / node counts

This commit is contained in:
shamoon 2023-02-22 12:43:37 -08:00
parent 8e9ce016b1
commit 060d5afcaa
4 changed files with 24 additions and 106 deletions

View file

@ -46,6 +46,8 @@ export default async function credentialedProxyHandler(req, res, map) {
} else if (widget.type === "cloudflared") {
headers["X-Auth-Email"] = `${widget.email}`;
headers["X-Auth-Key"] = `${widget.key}`;
} else if (widget.type === "pterodactyl") {
headers.Authorization = `Bearer ${widget.key}`;
} else {
headers["X-API-Key"] = `${widget.key}`;
}