fix github hostname check

This commit is contained in:
x032205
2025-08-04 14:24:09 -04:00
parent b8cd836225
commit 6958f1cfbd

View File

@@ -35,7 +35,7 @@ export const getGitHubInstanceApiUrl = async (config: {
}) => {
const host = config.credentials.host || "github.com";
await blockLocalAndPrivateIpAddresses(host);
await blockLocalAndPrivateIpAddresses(`https://${host}`);
let apiBase: string;
if (config.credentials.instanceType === "server") {