mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
pfSense_get_pf_states always returns source as src and dest as dst, this flipping based on direction is wrong. Ticket #6530
This commit is contained in:
parent
84c7a8f3c3
commit
e565e94981
@ -255,27 +255,17 @@ print $form;
|
||||
}
|
||||
|
||||
for ($i = 0; $i < $states; $i++) {
|
||||
if ($res[$i]['direction'] === "out") {
|
||||
$info = $res[$i]['src'];
|
||||
if ($res[$i]['src-orig'])
|
||||
$info .= " (" . $res[$i]['src-orig'] . ")";
|
||||
$info .= " -> ";
|
||||
$info .= $res[$i]['dst'];
|
||||
if ($res[$i]['dst-orig'])
|
||||
$info .= " (" . $res[$i]['dst-orig'] . ")";
|
||||
$srcip = get_ip($res[$i]['src']);
|
||||
$dstip = get_ip($res[$i]['dst']);
|
||||
} else {
|
||||
$info = $res[$i]['dst'];
|
||||
if ($res[$i]['dst-orig'])
|
||||
$info .= " (" . $res[$i]['dst-orig'] . ")";
|
||||
$info .= " <- ";
|
||||
$info .= $res[$i]['src'];
|
||||
if ($res[$i]['src-orig'])
|
||||
$info .= " (" . $res[$i]['src-orig'] . ")";
|
||||
$srcip = get_ip($res[$i]['dst']);
|
||||
$dstip = get_ip($res[$i]['src']);
|
||||
$info = $res[$i]['src'];
|
||||
if ($res[$i]['src-orig']) {
|
||||
$info .= " (" . $res[$i]['src-orig'] . ")";
|
||||
}
|
||||
$info .= " -> ";
|
||||
$info .= $res[$i]['dst'];
|
||||
if ($res[$i]['dst-orig']) {
|
||||
$info .= " (" . $res[$i]['dst-orig'] . ")";
|
||||
}
|
||||
$srcip = get_ip($res[$i]['src']);
|
||||
$dstip = get_ip($res[$i]['dst']);
|
||||
|
||||
?>
|
||||
<tr>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user