mirror of
https://github.com/fosrl/pangolin.git
synced 2026-10-14 16:49:05 +02:00
FIX: generateGerbilConfig hardcoded the WireGuard listen port to 51820 and never sent a relay port
This commit is contained in:
@@ -20,6 +20,7 @@ const getConfigSchema = z.object({
|
||||
|
||||
export type GetConfigResponse = {
|
||||
listenPort: number;
|
||||
relayPort: number;
|
||||
ipAddress: string;
|
||||
peers: {
|
||||
publicKey: string | null;
|
||||
@@ -142,7 +143,10 @@ export async function generateGerbilConfig(exitNode: ExitNode) {
|
||||
peers = [...sitePeers, ...clientPeers];
|
||||
|
||||
const configResponse: GetConfigResponse = {
|
||||
listenPort: exitNode.listenPort || 51820,
|
||||
listenPort:
|
||||
exitNode.listenPort ||
|
||||
config.getRawConfig().gerbil.start_port,
|
||||
relayPort: config.getRawConfig().gerbil.clients_start_port,
|
||||
ipAddress: exitNode.address,
|
||||
peers
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user