networkConnections() fixed parsing (linux)
This commit is contained in:
+1
-1
@@ -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(':');
|
||||
|
||||
Reference in New Issue
Block a user