Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
RunOnFluxBot committed Oct 7, 2024
1 parent 4c6a53c commit 8160445
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/fluxNetworkHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8160445

Please sign in to comment.