From 8ad368d7c0b89eefa856e1cb542b48780c2d04e8 Mon Sep 17 00:00:00 2001 From: Greybeard <security@offshift.io> Date: Fri, 23 Aug 2024 17:30:48 +0000 Subject: [PATCH] add public IP from env --- src/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 454c9d3..2d1c57c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -17,7 +17,8 @@ const main = async () => { maxRelays: process.env.MAX_RELAYS ? parseInt(process.env.MAX_RELAYS) : 8, }, verbose: (process.env.VERBOSE) ? (process.env.VERBOSE.toLowerCase() === "true") : false, - profit: (process.env.PROFIT) ? parseInt(process.env.PROFIT) : 0 + profit: (process.env.PROFIT) ? parseInt(process.env.PROFIT) : 0, + ip: (process.env.PUBLIC_IP) }; let publisher = new Publisher(_globalConfig); @@ -66,4 +67,4 @@ const main = async () => { } console.log(`💫 Starting publisher...`) -main(); \ No newline at end of file +main(); -- GitLab