Skip to content

Commit

Permalink
fix installNetcat
Browse files Browse the repository at this point in the history
  • Loading branch information
XK4MiLX authored Dec 27, 2023
1 parent f8bfdd9 commit 2f3869e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ZelBack/src/services/fluxNetworkHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -1408,9 +1408,8 @@ async function allowNodeToBindPrivilegedPorts() {
*/
async function installNetcat() {
try {
const exec = 'sudo apt install netcat -y';
const cmdAsync = util.promisify(nodecmd.get);
cmdAsync(exec);
const exec = 'sudo apt install netcat-openbsd -y';
await util.promisify(nodecmd.get)(`${exec}`);
} catch (error) {
log.error(error);
}
Expand Down

0 comments on commit 2f3869e

Please sign in to comment.