mirror of
https://github.com/fosrl/pangolin.git
synced 2026-10-15 09:09:05 +02:00
Added relayPort to exitNodes in db
This commit is contained in:
@@ -16,6 +16,7 @@ export async function createExitNode(
|
||||
const { value: address, release } = await getNextAvailableSubnet();
|
||||
try {
|
||||
const listenPort = config.getRawConfig().gerbil.start_port;
|
||||
const relayPort = config.getRawConfig().gerbil.clients_start_port;
|
||||
|
||||
const exitNodeName =
|
||||
config.getRawConfig().gerbil.exit_node_name ||
|
||||
@@ -30,6 +31,7 @@ export async function createExitNode(
|
||||
address,
|
||||
online: true,
|
||||
listenPort,
|
||||
relayPort,
|
||||
reachableAt,
|
||||
name: exitNodeName
|
||||
})
|
||||
|
||||
@@ -143,10 +143,8 @@ export async function generateGerbilConfig(exitNode: ExitNode) {
|
||||
peers = [...sitePeers, ...clientPeers];
|
||||
|
||||
const configResponse: GetConfigResponse = {
|
||||
listenPort:
|
||||
exitNode.listenPort ||
|
||||
config.getRawConfig().gerbil.start_port,
|
||||
relayPort: config.getRawConfig().gerbil.clients_start_port,
|
||||
listenPort: exitNode.listenPort || 51820,
|
||||
relayPort: exitNode.relayPort || 21820,
|
||||
ipAddress: exitNode.address,
|
||||
peers
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user