mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-06 18:56:39 +00:00
Also dont return if you are passing an exit node
This commit is contained in:
@@ -27,13 +27,9 @@ export async function traefikConfigProvider(
|
|||||||
})
|
})
|
||||||
.from(exitNodes)
|
.from(exitNodes)
|
||||||
.where(eq(exitNodes.name, exitNodeName));
|
.where(eq(exitNodes.name, exitNodeName));
|
||||||
if (!exitNode) {
|
if (exitNode) {
|
||||||
logger.error(
|
currentExitNodeId = exitNode.exitNodeId;
|
||||||
`Exit node with name ${exitNodeName} not found in the database`
|
|
||||||
);
|
|
||||||
return [];
|
|
||||||
}
|
}
|
||||||
currentExitNodeId = exitNode.exitNodeId;
|
|
||||||
} else {
|
} else {
|
||||||
const [exitNode] = await tx
|
const [exitNode] = await tx
|
||||||
.select({
|
.select({
|
||||||
|
|||||||
Reference in New Issue
Block a user