Skip to content

Commit cf6c949

Browse files
committed
Merge branch '4.9' into 4.10
2 parents ddd8462 + 86b6050 commit cf6c949

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

ui/scripts/network.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,19 @@
2626
tags: elem.tags
2727
};
2828

29+
if (typeof elem.icmptype != 'undefined') {
30+
var icmptype = elem.icmptype.toString()
31+
}
32+
33+
if (typeof elem.icmpcode != 'undefined') {
34+
var icmpcode = elem.icmpcode.toString()
35+
}
36+
2937
if (elemData.startport == 0 && elemData.endport) {
3038
elemData.startport = '0';
31-
} else if (elem.icmptype && elem.icmpcode) {
32-
elemData.startport = elem.icmptype;
33-
elemData.endport = elem.icmpcode;
39+
} else if (icmptype && icmpcode) {
40+
elemData.startport = icmptype;
41+
elemData.endport = icmpcode;
3442
}
3543

3644
return elemData;

0 commit comments

Comments
 (0)