From 2294fd955f324e9ed3ab9ce70c5abd66ca8aebbd Mon Sep 17 00:00:00 2001 From: Zdravko Iliev <zdravko.iliev@vereign.com> Date: Mon, 7 Aug 2023 15:19:43 +0300 Subject: [PATCH] feat: add separate var for peer port use default val --- libs/config/src/config/agent.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/config/src/config/agent.config.ts b/libs/config/src/config/agent.config.ts index d71fa86e..98e02af9 100644 --- a/libs/config/src/config/agent.config.ts +++ b/libs/config/src/config/agent.config.ts @@ -5,7 +5,7 @@ import { IConfAgent } from "../interfaces/agent.config.interface"; export const agentConfig = registerAs( "agent", (): IConfAgent => ({ - agentPeerPort: parseInt(process.env["AGENT_PEER_URL"]!.split(":")[2]), + agentPeerPort: parseInt(process.env["AGENT_PEER_PORT"]!) || 8001, agentPeerAddress: process.env["AGENT_PEER_URL"]!, agentName: process.env["AGENT_NAME"]!, agentKey: process.env["AGENT_KEY"]!, -- GitLab