summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www
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:01:42 -0500
commite6ddb55ef3abc71de14a07b25358c9656f8fcf19 (patch)
tree8bf49c61a141cc29664908a4f89d123c2b67081c /src/usr/local/www
parent31f171e4509af1c149bbc7dff3fa23a4a2ff3059 (diff)
downloadpfsense-e6ddb55ef3abc71de14a07b25358c9656f8fcf19.zip
pfsense-e6ddb55ef3abc71de14a07b25358c9656f8fcf19.tar.gz
Use the translated destination for kill_states if one exists. Ticket #6531
Diffstat (limited to 'src/usr/local/www')
-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