forked from p15670423/monkey
UI: Fix ATT&CK report bug which wasn't showing IP addresses in PBAs
Fixes #1370 PR #1393
This commit is contained in:
parent
8ae0d5720b
commit
fdba9f54ca
|
@ -14,7 +14,9 @@ export function renderMachineFromSystemData(data) {
|
||||||
machineStr = data['hostname'] + ' ( ';
|
machineStr = data['hostname'] + ' ( ';
|
||||||
}
|
}
|
||||||
data['ips'].forEach(function (ipInfo) {
|
data['ips'].forEach(function (ipInfo) {
|
||||||
if (typeof ipInfo === 'object') {
|
if (ipInfo instanceof Array) {
|
||||||
|
machineStr += ipInfo.join(', ') + ', ';
|
||||||
|
} else if (typeof ipInfo === 'object') {
|
||||||
machineStr += ipInfo['addr'] + ', ';
|
machineStr += ipInfo['addr'] + ', ';
|
||||||
} else {
|
} else {
|
||||||
machineStr += ipInfo + ', ';
|
machineStr += ipInfo + ', ';
|
||||||
|
|
Loading…
Reference in New Issue