add exit node name and fix db import issues

This commit is contained in:
miloschwartz
2025-06-15 17:49:27 -04:00
parent d46b9eaf87
commit b39708700d
24 changed files with 39 additions and 38 deletions

View File

@@ -53,7 +53,7 @@ export async function getConfig(
}
// Fetch exit node
let exitNodeQuery = await db
const exitNodeQuery = await db
.select()
.from(exitNodes)
.where(eq(exitNodes.publicKey, publicKey));
@@ -77,7 +77,7 @@ export async function getConfig(
address,
listenPort,
reachableAt,
name: `Exit Node ${publicKey.slice(0, 8)}`
name: config.getRawConfig().gerbil.exit_node_name // defaults to "default"
})
.returning()
.execute();