diff options
author | Chris Buechler <cmb@pfsense.org> | 2016-06-24 23:01:42 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2016-06-24 23:02:05 -0500 |
commit | 515f53a8fdc5c320253eda2b14e2f3177a74c2df (patch) | |
tree | 261a4c229bce35dcb48b0972175ab3da20325f44 /src | |
parent | ea81ba1cec3d347eece620a42167bb0e76b3c9a4 (diff) | |
download | pfsense-515f53a8fdc5c320253eda2b14e2f3177a74c2df.zip pfsense-515f53a8fdc5c320253eda2b14e2f3177a74c2df.tar.gz |
Use the translated destination for kill_states if one exists. Ticket #6531
Diffstat (limited to 'src')
-rwxr-xr-x | src/usr/local/www/diag_dump_states.php | 11 |
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> <? |