networkConnections() fixed parsing (linux)

This commit is contained in:
Sebastian Hildebrandt
2019-10-15 22:32:11 +02:00
parent 782b92df02
commit 33196e4797
5 changed files with 10 additions and 4 deletions
+1 -1
View File
@@ -785,7 +785,7 @@ function networkConnections(callback) {
let lines = stdout.toString().split('\n');
lines.forEach(function (line) {
line = line.replace(/ +/g, ' ').split(' ');
if (line.length >= 6) {
if (line.length >= 7) {
let localip = line[3];
let localport = '';
let localaddress = line[3].split(':');