Dont allow clients to connect to remote nodes quite yet

This commit is contained in:
Owen
2026-08-21 12:25:14 -04:00
parent e3e1508e8a
commit 442cefda84
3 changed files with 11 additions and 4 deletions
+5 -2
View File
@@ -153,7 +153,8 @@ export async function listExitNodes(
orgId: string,
filterOnline = false,
noCloud = false,
siteId?: number
siteId?: number,
noRemote = false
) {
const allExitNodes = await db
.select({
@@ -242,7 +243,9 @@ export async function listExitNodes(
let remoteExitNodesList = allExitNodes.filter(
(node) =>
node.type === "remoteExitNode" && (!filterOnline || node.online)
node.type === "remoteExitNode" &&
!noRemote &&
(!filterOnline || node.online)
);
const gerbilExitNodes = allExitNodes.filter(
(node) =>