Fix subnet issues

This commit is contained in:
Owen
2025-02-24 20:21:57 -05:00
parent 8ee6a3f134
commit 733e0e07c3
4 changed files with 8 additions and 4 deletions

View File

@@ -46,7 +46,9 @@ export async function getAllRelays(
const sitesRes = await db.select().from(sites).where(eq(sites.exitNodeId, exitNode.exitNodeId));
if (sitesRes.length === 0) {
return next(createHttpError(HttpCode.NOT_FOUND, "No sites found for this exit node"));
return {
mappings: {}
}
}
// get the clients on each site and map them to the site