From ab78072a7296c782fb06fa00f39e570835ee7c30 Mon Sep 17 00:00:00 2001 From: Jyben Date: Fri, 28 Feb 2020 18:43:19 +0100 Subject: [PATCH] Fix issue #6 --- app/main-process/firewall.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main-process/firewall.js b/app/main-process/firewall.js index 95572d0..740e68d 100644 --- a/app/main-process/firewall.js +++ b/app/main-process/firewall.js @@ -77,7 +77,7 @@ function _execBash(command, win) { sudo.exec(command, options, function (error, stdout, stderr) { _ping(win); - if (stderr !== '' && !stderr.toUpperCase().includes('BAD RULE')) { + if (stderr !== '' && stderr !== undefined && !stderr.toUpperCase().includes('BAD RULE')) { log.error(`stderr: ${stderr}`); } }