summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2016-06-24 23:01:42 -0500
committerChris Buechler <cmb@pfsense.org>2016-06-24 23:02:08 -0500
commit51e30c400b61e79681bddd1929933415bdaf723f (patch)
tree9ac1d366edbe24333a499c4603ee03de4813d1b9
parentebb1e0a59372b70acfe20ff1162925eaf8b7c502 (diff)
downloadpfsense-51e30c400b61e79681bddd1929933415bdaf723f.zip
pfsense-51e30c400b61e79681bddd1929933415bdaf723f.tar.gz
Use the translated destination for kill_states if one exists. Ticket #6531
-rwxr-xr-xsrc/usr/local/www/diag_dump_states.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/usr/local/www/diag_dump_states.php b/src/usr/local/www/diag_dump_states.php
index 3fa87a5..510b3c8 100755
--- a/src/usr/local/www/diag_dump_states.php
+++ b/src/usr/local/www/diag_dump_states.php
@@ -257,6 +257,8 @@ print $form;
for ($i = 0; $i < $states; $i++) {
$info = $res[$i]['src'];
+ $srcip = get_ip($res[$i]['src']);
+ $dstip = get_ip($res[$i]['dst']);
if ($res[$i]['src-orig']) {
$info .= " (" . $res[$i]['src-orig'] . ")";
}
@@ -264,9 +266,10 @@ print $form;
$info .= $res[$i]['dst'];
if ($res[$i]['dst-orig']) {
$info .= " (" . $res[$i]['dst-orig'] . ")";
+ $killdstip = get_ip($res[$i]['dst-orig']);
+ } else {
+ $killdstip = $dstip;
}
- $srcip = get_ip($res[$i]['src']);
- $dstip = get_ip($res[$i]['dst']);
?>
<tr>
@@ -280,8 +283,8 @@ print $form;
<?= format_bytes($res[$i]['bytes out']) ?></td>
<td>
- <a class="btn fa fa-trash" data-entry="<?=$srcip?>|<?=$dstip?>"
- title="<?=sprintf(gettext('Remove all state entries from %1$s to %2$s'), $srcip, $dstip);?>"></a>
+ <a class="btn fa fa-trash" data-entry="<?=$srcip?>|<?=$killdstip?>"
+ title="<?=sprintf(gettext('Remove all state entries from %1$s to %2$s'), $srcip, $killdstip);?>"></a>
</td>
</tr>
<?
OpenPOWER on IntegriCloud