From 816044576977a02faba50ad526bf3ce6eb193d50 Mon Sep 17 00:00:00 2001 From: RunOnFlux Date: Mon, 7 Oct 2024 10:42:57 +0000 Subject: [PATCH] Update from https://github.com/RunOnFlux/flux/commit/32d1964eff2f6451ecf391e87b8bddc3ce58a2cc --- services/fluxNetworkHelper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/fluxNetworkHelper.js b/services/fluxNetworkHelper.js index 08c71615..be2aef4b 100644 --- a/services/fluxNetworkHelper.js +++ b/services/fluxNetworkHelper.js @@ -1364,7 +1364,7 @@ async function purgeUFW() { const cmdAsync = util.promisify(nodecmd.get); const firewallActive = await isFirewallActive(); if (firewallActive) { - const execB = 'LANG="en_US.UTF-8" && sudo ufw status | grep \'DENY\' | grep -E \'(3[0-9]{4})\''; // 30000 - 39999 + const execB = 'LANG="en_US.UTF-8" && sudo ufw status | grep \'DENY\''; const cmdresB = await cmdAsync(execB).catch(() => { }) || ''; // fail silently, if (serviceHelper.ensureString(cmdresB).includes('DENY')) { const deniedPorts = cmdresB.split('\n'); // split by new line