From cbd2df9e498f8517ae3b18519da978153f2a0420 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Thu, 22 Mar 2018 07:22:18 +0000 Subject: [PATCH] Only add the SCFG outbound root if it's not in the FTNDomains config already. This shouldn't cause any functional changes since it's the outbound dirs that matter, and they already can't have duplicates. --- exec/binkit.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/exec/binkit.js b/exec/binkit.js index f135a01495..c1665d91f2 100644 --- a/exec/binkit.js +++ b/exec/binkit.js @@ -750,6 +750,7 @@ function run_outbound(ran) var scfg; var outbound_dirs=[]; var outbound_roots=[]; + var scfg_ob; log(LOG_DEBUG, "Running outbound"); scfg = new SBBSEchoCfg(); @@ -758,10 +759,12 @@ function run_outbound(ran) log(LOG_ERROR, "sbbsecho not configured for FLO-style mailers."); return false; } - outbound_roots.push(scfg.outbound.replace(/[\\\/]$/, '')); Object.keys(FIDO.FTNDomains.outboundMap).forEach(function(key) { outbound_roots.push(FIDO.FTNDomains.outboundMap[key]); }); + scfg_ob = scfg.outbound.replace(/[\\\/]$/, ''); + if (outbound_roots.indexOf(scfg_ob) == -1) + outbound_roots.push(scfg_ob); log(LOG_DEBUG, "Outbound roots: " + JSON.stringify(outbound_roots, null, 0)); outbound_roots.forEach(function(oroot) { var dirs; -- GitLab