mirror of
https://github.com/fosrl/pangolin.git
synced 2025-07-23 12:15:36 +02:00
add exit node name and fix db import issues
This commit is contained in:
parent
d46b9eaf87
commit
b39708700d
24 changed files with 39 additions and 38 deletions
|
@ -105,14 +105,14 @@ export async function copyInConfig() {
|
|||
}
|
||||
});
|
||||
|
||||
// TODO: eventually each exit node could have a different endpoint
|
||||
const exitNodeName = config.getRawConfig().gerbil.exit_node_name;
|
||||
|
||||
await db
|
||||
.update(exitNodes)
|
||||
.set({ endpoint })
|
||||
.where(ne(exitNodes.endpoint, endpoint));
|
||||
// TODO: eventually each exit node could have a different port
|
||||
.where(eq(exitNodes.name, exitNodeName));
|
||||
await db
|
||||
.update(exitNodes)
|
||||
.set({ listenPort })
|
||||
.where(ne(exitNodes.listenPort, listenPort));
|
||||
.where(eq(exitNodes.name, exitNodeName));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue