Skip to content

Commit

Permalink
Fix issue #6
Browse files Browse the repository at this point in the history
  • Loading branch information
Jyben committed Feb 28, 2020
1 parent 6123df6 commit ab78072
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/main-process/firewall.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
}
Expand Down

0 comments on commit ab78072

Please sign in to comment.